[RESOLVED] when all the controls are in disenable position only the keyAscii is worikg.. how to
Hi all!,
suppose if i want to find either keyAscii or keycode of a paricular key on a form
egg:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
MsgBox (KeyCode)
End Sub
it will work only, if the controls(asume form contains text boxes,command buttons..) on a form should be set to Enabled=false
How can i find the either keyAscii or keycode, of a paricular key, even if i did not set the controls' property enabled=false
Thanks in advance:
regards:
raghunadhs
Re: when all the controls are in disenable position only the keyAscii is worikg.. how to
Set the KeyPreview Property of the form to True
Re: when all the controls are in disenable position only the keyAscii is worikg.. how to
Hi Mark Gambo!
Thats great,.. its working...
Thank you,
regards:
raghunadhs.
Quote:
Originally Posted by Mark Gambo
Re: when all the controls are in disenable position only the keyAscii is worikg.. how to
No problems, don't forget to mark this thread as resolved!