key event

  • Thread starter Thread starter m.pfeffer
  • Start date Start date
M

m.pfeffer

hi
if i create a empty form the onkeydown from form1 works fine
but if i place a button on the form the method will not be called.
what must i do to handle a keyDown event in form1
thx
martin
 
Set the "KeyPreview" property on the form to True. This will fire keyboard
events on the form even when a control has the focus.
 
Philip said:
Set the "KeyPreview" property on the form to True. This will fire keyboard
events on the form even when a control has the focus.
THX
this work fine but not with the arrow keys
martin
 
Back
Top