Tips and Trick: Make an internet browser with Visual Basic

This simple example will show you how to view a page that found on the internet.Just enter the page URL and it will be displayed on your form.

Preparations:

Add WebBrowser control to your form (choose from the menu Project->Components, mark the Microsoft Internet Controls check box, and press OK, then drag it to your form).

Form Code:

Private Sub Form_Load()
'replace the http://www.momon.co.nr below with the URL you want to display
WebBrowser1.Navigate http://www.momon.co.nr
End Sub

Post a Comment

0 Comments