Catch arrow keys and enter in a datagrid combobox

Domanda Catch arrow keys and enter in a datagrid combobox

  • giovedì 29 dicembre 2005 03:56
     
     
    how do you catch an arrow or enter key press event in a datagrid combobox?

Tutte le risposte

  • mercoledì 4 gennaio 2006 13:35
     
     

    Try the KeyUp event - Occurs when a key is released while the grid has focus.  It is passed (ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs)
      You can check e.KeyCode of a Return or Arrow keycode like this:

     IFe.KeyCode = 13 THEN

     

    END IF