Link to home
Start Free TrialLog in
Avatar of Mostafa_ElSadek
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
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

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..
Avatar of Mostafa_ElSadek
Mostafa_ElSadek

ASKER

how I can do that.



ASKER CERTIFIED SOLUTION
Avatar of Jai S
Jai S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial