Results 1 to 5 of 5

Thread: Please Help Me With VB WebBrowsers

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2010
    Posts
    14

    Question Please Help Me With VB WebBrowsers

    Can Some One please help me with my problem...
    I am trying to get a VB WebBrowser to load an HTML Code From A RichTextBox, how would i do this...

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Please Help Me With VB WebBrowsers

    If you want to load literal code, rather than a file, into a WebBrowser then you set its DocumentText property. To get the text from a RichTextBox you get its Text property. Put the two together and you have your solution.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2010
    Posts
    14

    Re: Please Help Me With VB WebBrowsers

    So you get something like this ?
    vb Code:
    1. WebBrowser1.Url = (RichTextBox1.Text)
    If that is corect, where is my error am i makeing in that code?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Please Help Me With VB WebBrowsers

    Go back and read my post again and compare what I said to your code.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2010
    Posts
    14

    Re: Please Help Me With VB WebBrowsers

    Sorry for that I understand now.
    Thanks alot!!!

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