I am having one heck of a time trying to trap the Delete key from an ultracombo...I have been playing with both the KeyDown and PreviewKeyDown events and I've had great success with all other keys, including stubborn ones like Tab and the arrow keys, even Backspace, but I just can't trap Delete.
I've tried the GetAsyncKeyState function from the User32 Lib (recommended by numerous dev forums for regular MS controls) with no luck...
Anyone have any ideas?Thanks!
Hi !
How did you trap the **TAB** key on KeyDown inside the UltraCombo ?
private void _ucTab4Month_KeyDown(object sender, KeyEventArgs e)
When I push TAB inside the UltraCombo and debug into the KeyDown it givesme e.KeyCode = LButton | Back
and e.KeyData = LButton | Back
but I was pushing **TAB** ?!?! How can I trap the TAB-button ?I need to a certain thing if the user enters TAB inside the UltraCombo ( select the TOP row inside a Grid below it ... which is sorted with filtering, and therefore it's selecting the 2nd row from the bottom )rgd,EE.
Hi eiki666
I trapped the TAB key by using the PreviewKeyDown event. Here is an example:Private Sub myCombo_PreviewKeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.PreviewKeyDownEventArgs) Handles myCombo.PreviewKeyDown e.IsInputKey = True If e.KeyCode = Keys.Tab Then Debug.Print("Tab Key!") End IfEnd SubHope that helps!