Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

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
0
Mostafa_ElSadek
Asked:
Mostafa_ElSadek
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
use the form's keyup event, and set the form's keypreview property to true.

0
 
Jai STech ArchCommented:
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..
0
 
Mostafa_ElSadekAuthor Commented:
how I can do that.



0
 
Jai STech ArchCommented:
check these links...they might guide you how and where to write the code

http://www.homeandlearn.co.uk/NET/nets10p3.html
http://www.configure-all.com/vbform_events.php
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now