I switch from vb6 to vb.net..
and it's not that easy to familiarize .net syntax :)

here's what i want..

1 webbrowser1
1 button1 ( multiline )
1 textbox1

how can i view the webbrowser1 source code in the textbox1 by click the button?

--------------

this can be done in vb6 by saving the html file to text then opening the text..

but i cant do it in vb.net.. help me :)

Recommended Answers

[B]DocumentText[/B] Property.
[code]
TextBox1.Text = WebBrowser1.DocumentText
[/code]

Jump to Post

All 2 Replies

Re: View Webbrowser Source Code in Textbox1 VB.NET 80 80

DocumentText Property.

TextBox1.Text = WebBrowser1.DocumentText
commented: so fast :) +1
Re: View Webbrowser Source Code in Textbox1 VB.NET 80 80

thanks.. that's fast :)

Be a part of the DaniWeb community

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