Things You'll Need:
- VB.net
- Internet connection
-
Step 1
Open VB.net.
-
Step 2
New ProjectCreate a new VB.net windows application by selecting New Project and then when the window appears select VB.net and windows application.
-
Step 3
TextboxAdd a textbox to the form.
-
Step 4
ButtonAdd a button to the form and change it's text property to "Go".
-
Step 5
Web BrowserAdd a web browser control to the form.
-
Step 6
Click eventDouble click on the button to bring up the button's click event.
-
Step 7
CodeIn the click event type in the code:
WebBrowser1.Navigate(TextBox1.Text)
This code says to take the URL that you type into the textbox and have your web browser control navigate to it. -
Step 8
Run the program by pressing the F5 key on your keyboard.
-
Step 9
URL in TextboxDuring runtime type "http://www.Google.com" into the textbox on the form (without the quotes of course).
-
Step 10
Click the Go buttonClick the Go button.
-
Step 11
Final ResultsNotice how Google.com appears in your web browser.











Comments
mpodlesny said
on 11/19/2008 So you believe in making things more difficult then they have to be? In the world of IT we don't do things because they are cool, we do them because they are cost efficient. It saves on labor costs which invariably saves money for the client. If you want "cool", "fun" or "difficult" go build a video game.
Ryachza said
on 11/18/2008 If you are going to do that, you might as well use IE. If you want to do it the fun/difficult/intelligent way, try using a WebRequest object. Parse the resulting HTML and generate form controls. Then write a javascript engine. Using the browser control was cool like 5 years ago in VB6 (maybe). Don't bring .NET down to that level.