Looking to access the FindReplaceForm KeyDown Event. Right now the form will perform a search when we press the "F" key, but I want to add "F3" to the list. Right now I have tried adding an EventHandler to trap for this, but the event does not get handled.
In the below code, the handler for the FormClosing works, but the KeyDown handler does not. My Private Sub keypress works as it is the main keypress event that handles all keypress events from my syntax editor(s).
Dim Options As New FindReplaceOptions() SearchForm = New FindReplaceForm(sender, Options) SearchForm.Owner = Me AddHandler SearchForm.FormClosing, AddressOf findrelaceform_Closing AddHandler SearchForm.KeyDown, AddressOf keypress
How can I access the FindReplaceForm KeyPress events?