Stoffel85
Newcomer
Hi,
I want to make a search bar simular to the firefox search bar.
So I want it to close when I press Escape.
The problem is, when I press Escape, it won't run the KeyUp, KeyDown or KeyPress sequence.
I tried it on the toolbar, the textbox in the toolbar and on the button, none work.
I want to make a search bar simular to the firefox search bar.
So I want it to close when I press Escape.
The problem is, when I press Escape, it won't run the KeyUp, KeyDown or KeyPress sequence.
I tried it on the toolbar, the textbox in the toolbar and on the button, none work.
Code:
Private Sub tlTxtSomething_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles tlCategorie.KeyDown
If (e.KeyCode = Keys.Escape) Then
tlSearch.Visible = False
End If
End Sub