Mostafa_ElSadek
asked on
program KB on VB6
Deal All;
I'm using VB6 to do some applications and I need to use the KB on my application like (F2, or Enter key).
would you please advice how I could put a code doing this.
thanks
 Mostafa
I'm using VB6 to do some applications and I need to use the KB on my application like (F2, or Enter key).
would you please advice how I could put a code doing this.
thanks
 Mostafa
use the form's keyup event, and set the form's keypreview property to true.
there is a property for your form like KEYPREVIEW - set uit to true
and write in the key down event as
if keycode = 13 then 'this is for enter key
end if
same way there is a key code for f2..
and write in the key down event as
if keycode = 13 then 'this is for enter key
end if
same way there is a key code for f2..
ASKER
how I can do that.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.