Help with InnerHtml

VbDotNeter

New member
Joined
Jun 22, 2010
Messages
2
Programming Experience
1-3
Hi,
This is my first post in this forum.
I have a problem that i've been working on since the bast four days but i could not solve it.
I trying to fill the post area in vb forums like this one automatically using inner html

here is my code

VB.NET:
        Dim textbox3 As Windows.Forms.HtmlElement = WebBrowser1.Document.GetElementById("vB_Editor_001_iframe")

        textbox3.Innerhtml = threadpost

it does not specificly work with this id even if i use innertext instead of innerhtml,
in fact when i change the id with another one it works fine.
what is the problem??

thanks in advance
 
I just found the solution

Hi, I just found the solution in my own

PHP:
Dim Iframebox As Windows.Forms.HtmlElement = WebBrowser1.Document.GetElementById("vB_Editor_001_iframe") 
Dim IframeboxDo As mshtml.HTMLIFrame = CType(Iframebox.DomElement, HTMLIFrame) IframeboxDo.contentWindow.document.body.innerHTML = "something"
 
Back
Top