saperus

saperus

  • NA
  • 1
  • 0

Shortcut to a shortcut key (DataGrid + Buttons)

Oct 21 2003 4:41 PM
this is a strange behavior of buttons with shortcut keys, when You have a datagrid on a form and some buttons with shortcut keys. When You click on the datagrid (anywhere but the cells, free space, header or something) and press the shortcut key (without the ALT key pressed) button's action is called. You can easyly recreate this by creating a simple project with datagrid and a button with shortcut key (&Delete in the Text property for example). Then add event handler for rhis button's click event, for example show a message box. Run the app. click anywhere on the datagrid. press the D button (without ALT). The button's action is called. how can I prevent this from happening? Saper(ek)

Answers (1)