Hello,
In my application, i have ribbon menu etc... and one ultragrid.
I want to check if user press F8 key, to start procedure.
I put the following program on Ultragrid1_keypress events, but it doesn't works.
Thank you for your help and sorry for my weak english.
it works. But only on KEYDOWN events.
Thank you
Hi,
In the keypress or keydown event try code similar to:
If e.KeyCode = Keys.F8 Then
call_method()
End If
KeyPress only fires when the key that was pressed is a "printable character", i.e., basically one that shows up in a TextBox, like alphanumeric an punctuation characters. If you handle KeyDown, instead, you the event will fire assuming UltraGrid has the input focus. Note that the FOrm class exposes a KeyPreview property, which when set to true will route keyboard events throught the form's handlers, so that you get a notification regardless of which control has the focus.