I want to have my search textbox search when I hit the Enter key.
My code doesn't seem to work because it underlines "KeyCode" saying its not declared.
What do I need to do to make it work?
Private Sub txtSearch_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSearch.KeyPress
If KeyCode = Keys.Enter Then
Me.Text = "Hello"