ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

31-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

Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!