How do you read a web page in VB express?

I would like to use VBExpress to read a webpage online in html.

Anyone has any idea what code to use to Open a web page online

I intend to get links from the HTML code and have them placed on a buttons for easy selection (for hyper jumping).

Thanks.


Answer this question

How do you read a web page in VB express?

  • Rob R

    I'll have to try this later..... guests coming over.


  • slbteam08

    Maybe the code is not there because it is not a VB Sample.
    I think that you will find useful the help topic "WebBrowser Class"

    http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx

    Luca Dellamore
    Visual Basic Test Team


  • Bob Heitzman



    Dim wb as new webBrowser

    me.controls.add(wb)

    wb.navigate="Http://www.microsoft.com"

  • BpBonnett

    ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_fxmclictl/html/53db79fa-8a5e-448e-88c2-f54ace3860b6.htm


    Retrieving the dynamic source with the OuterHtml property

    1. Create a new Windows Forms application. Start with a single < XML:NAMESPACE PREFIX = MSHelp NS = "http://msdn.microsoft.com/mshelp" />Form, and call it Form1.

    2. Host the WebBrowser control in your Windows Forms application, and name it WebBrowser1. For more information, see How to: Add Web Browser Capabilities to a Windows Forms Application.

    3. Create a second Form in your application called CodeForm.

    4. Add a RichTextBox control to CodeForm and set its Dock property to Fill.

    5. Create a public property on CodeForm called Code.

    6. Add a Button control named Button1 to your Form, and monitor for the Click event. For details on monitoring events, see Consuming Events.

    7. Add the following code to the Click event handler.



    I found this item in VBE under HTML - accessing in Windows Forms..

    However 8. is MISSING!  The code is not ther. Can you believe it   The best part! 
    Can you help me out   Perhaps yours isn't missing.


    This will be the answer!


  • How do you read a web page in VB express?