Testing HTML

Conejo

Well-known member
Joined
Jul 24, 2013
Messages
65
Location
USA
Programming Experience
1-3
How can I import and load an html file to webbrowser1?
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,335
Location
Sydney, Australia
Programming Experience
10+
If you want to load a file then just set the Url property of the WebBrowser and if you have the HTML in a String then set the DocumentText. If setting the Url to a local file, I believe that you have to use the "file://" protocol, but you can test that out for yourself.
 
Top Bottom