Help please VB coding

Discussion in 'Computing, Science, and Technology' started by JoeyB, May 27, 2009.

Thread Status:
Not open for further replies.
  1. JoeyB

    JoeyB Active Member

    Joined:
    Mar 13, 2009
    Messages:
    1,670
    Likes Received:
    12
    Device:
    iPhone 4 (White)
    Ok, so i was making a Web Browser in Visual Basic and I finished so I pressd the "Debug" button to test it well I have a total of 6 buttons well I typed in the Textbox for example http://www.youtube.com and I pressed the Enter button instead of pressing the "Go" button and it didn't work.So I asked the ppl on the redTool irc so, that if I press Enter it will press the "Go" button but I had 1 error so it doesnt work here is the code
    Code:
    Private Sub addresstextbox_keydown(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.KeyDown
            If e.KeyCode = Keys.Enter Then
                WebBrowser1.Navigate(TextBox1.Text)
            End If
        End Sub
    here is the error
    Code:
    Error	1	'KeyCode' is not a member of 'System.EventArgs'
    
Thread Status:
Not open for further replies.

Share This Page