Keydown event usage  help pls

Here one can report bugs or hold discussions about bugs updates and work arounds.
Post Reply
necmigulen
Posts: 2
Joined: Tue Nov 08, 2005 3:00 pm

Keydown event usage  help pls

Post: # 417Post necmigulen
Mon Mar 09, 2009 8:48 am

object frm as form
object edt as edit

OnKeydown= keydwn

end object
end object


sub keydwn(key as word,shift as integer)


end sub


what is missing or wrong help pls

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

Keydown event usage  help pls

Post: # 418Post Marco
Mon Mar 09, 2009 4:07 pm

object frm as form
object edt as edit

OnKeydown=keydwn``remove spaces after the = sign.

end object
end object

frm.showmodal``shows the form with the edit box

sub keydwn(key as integer,shift as integer)``key declared as integer

showmessage str$(key)``shows the number of the key in a messagebox
end sub

I hope this will help you, best regards

Post Reply