Untouchable
Member
- Joined
- Aug 6, 2006
- Messages
- 11
- Programming Experience
- Beginner
Well, im working on a webbrowser but ive run into a peculiar thing...
Im trying to make it so that when you type in a address an hit enter, you will navigate to that address (I have a button that does this, but want to have both options)..
So far I have
When i hit enter, nothing happens..
Im trying to make it so that when you type in a address an hit enter, you will navigate to that address (I have a button that does this, but want to have both options)..
So far I have
VB.NET:
Private Sub Text_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If (e.KeyChar = Convert.ToChar(13)) Then
activebrowser.Navigate(TextBox1.Text)
End If
End Sub
When i hit enter, nothing happens..