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:
- Open the Visual Basic, select “File” on the menu, hit new and create a new project.
- The New Project dialog will appear.
Select “windows” in the project types, hit the “windows form application” in the templates and hit “ok“. - In the toolbox select a webbrowser, a button and a textbox and drag it into the form.
- Double click the button to fire the event handler of it and do this following code.
1 | WebBrowser1.Navigate(TextBox1.Text) |
Output:
Readers might read also: