Greeting, am currently using vb.net 2008, ive started a project and i need to import HTML line to a another HTML file that is being read in a web browser control, i've try something like :

Private Sub Line(ByVal Textmsg As String, ByVal type As String)
WebBrowser1.Document.Body.InnerHtml = WebBrowser1.Document.Body.InnerHtml & "</br>" & Textmsg
End Sub

on Vb6 it was working but on .net i received the following error
Specified cast is not valid.

can someone help me? i've try different other algo but each time i have the same error, is there a way to do it?

Take a look at FAQ.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.