Results 1 to 4 of 4

Thread: Display webpage in webbrowser using html code only?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    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.

  2. #2
    Addicted Member DramaQueen's Avatar
    Join Date
    Mar 2010
    Posts
    187

    Re: Display webpage in webbrowser using html code only?

    How about writing the source to a file and then call WebBrowser.Navigate(FilePath)?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    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.

  4. #4
    PowerPoster keystone_paul's Avatar
    Join Date
    Nov 2008
    Location
    UK
    Posts
    3,327

    Re: Display webpage in webbrowser using html code only?

    Quote Originally Posted by TCarter View Post
    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
  •  



Click Here to Expand Forum to Full Width