|
-
Mar 28th, 2010, 10:27 AM
#1
Thread Starter
Fanatic Member
Display webpage in webbrowser using html code only?
I once read somewhere it was quite simple (few lines of code) to display a webpage in a webbrowser control, by passing the control the HTML from a string, or predefined code.
What is that option? Thanks.
-
Mar 28th, 2010, 01:17 PM
#2
Addicted Member
Re: Display webpage in webbrowser using html code only?
How about writing the source to a file and then call WebBrowser.Navigate(FilePath)?
-
Mar 28th, 2010, 01:57 PM
#3
Thread Starter
Fanatic Member
Re: Display webpage in webbrowser using html code only?
i know of that way, but i thought there was a way to generate it..on the fly so to speak.
-
Mar 28th, 2010, 02:20 PM
#4
Re: Display webpage in webbrowser using html code only?
 Originally Posted by TCarter
i know of that way, but i thought there was a way to generate it..on the fly so to speak.
How about
Code:
WebBrowser1.DocumentText = "Hello <b>VBForums</b>"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|