Display a Web Page

This exercise describes how to add a WebBrowser to a form:

  1. Click and drag a WebBrowser from the Toolbox to the Design Sheet:
  2. Resize

    Click and drag the corners of the control to resize the control.

    Reposition

    Click and drag the handle (top-left) to reposition the control.

  3. Click the Properties tab to display the properties of the WebBrowser control:
  4. (If the Properties pane is not already open, you can open it via the Properties button on the ribbon.)

  5. The simplest way to enter a web page URL is to use your internet browser to navigate to the site you want to browse, copy the address, and then paste it into the Address property of the WebBrowser control:
  6. Save your changes and click Run to run the form:
  7. Note there may be a delay before the WebBrowser connects to the address you have specified. On its own, an embedded web browser lacks the functionality of fully-featured web browsers, such as Chrome or Microsoft Edge. However, you can use Scripting to enhance the user experience by creating buttons for browser Back, Forward, Refresh and Loading Status. See: Use a script to customise a web page