31-Web Browser

0
316

This Visual Basic tutorial is all about Web Browser.
In this tutorial we will create a simple webbrowser in visual basic. In the toolbox there is a tool called ‘WebBrowser’  that  designed to output web pages.

 

So let’s get started:

  1. Open the Visual Basic, select “File” on the menu, hit new and create a new project.
    01_helloworld
  2. The New Project dialog will appear.
    create2s
    Select “windows” in the project types, hit the “windows form application” in the templates and hit “ok“.
  3. In the toolbox select a webbrowser, a button and a textbox and drag it into the form.
    wbF1
  4. Double click the button to fire the event handler of it and do this following code.
  1. WebBrowser1.Navigate(TextBox1.Text)

Output:

wbF2

 

Readers might read also:

 

 

Facebook Comments
(Visited 24 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here