Suppose you had a form with three controls: a button (Button1), a textbox (TextBox1), and a web browser control (WebBrowser1). Note the names in parenthesis are simply to refer to the attatched image.

If you want to browse your own URLs in the browser at run-time you could make the button, textbox and web control. The user enters the URL into the textbox and clicks the button to "go" (navigate) to that webpage.
The code for the entire program would look like this:
CODE
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate(TextBox1.Text)
End Sub
End Class
No code would really go into the textbox or the web control... simply in the button.
==EDIT: Explanation of code==
Under the button click action i have placed the code:
CODE
WebBrowser1.Navigate(TextBox1.Text)
WebBrowser1 is the name of the web browser control
Navigate is the sub routine (thingy that makes things do things) that makes the web browser control go to the URL inside the parenthesis ().
My code says that the web browser (our WebBrowswer1) will Navigate to whatever the user has entered in TextBox1 (hopefully it is a web site).
NOTE: That we do not have quotes around TextBox1.Text because it is not a string, it is referencing the text in TextBox1. However, if we wanted to, for example, go to Google.com when the user clicked the button (or some other event) we would put
http://www.google.com inside quotes to look like:
CODE
WebBrowser1.Navigate("http://www.google.com/")
Because...
http://www.google.com is a string being passed through the Navigate sub routine and NOT referencing some other object on the form.
This method works for any object on the form...
Hopefully (maybe) this helps someone!
This post has been edited by mrmcpott: 29 Nov, 2008 - 12:22 AM