
July 17th, 2008, 09:26 AM
|
|
Registered User
|
|
Join Date: Jul 2008
Posts: 1
Time spent in forums: 10 m 44 sec
Reputation Power: 0
|
|
|
Need help with the Return key
Hi all!
I'm very new to Visual Basic (This is my first day) and I went through the "Creating your first Visual Basic program" tutorial, I finished the tutorial but I can't get the desired result.
I'm trying to set it up so when the return key (13) is pressed, that is the same as clicking the go key. I have googled it and found a few answers but none of them helped. I’m using Visual Basic 2008 Express Edition. and here is my code:
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
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
Can anyone help me?
Thanks!
|