program KB on VB6

Posted on 2007-10-01
Last Modified: 2010-04-30
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.

Question by:Mostafa_ElSadek
    LVL 142

    Expert Comment

    by:Guy Hengel [angelIII / a3]
    use the form's keyup event, and set the form's keypreview property to true.

    LVL 14

    Expert Comment

    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..

    Author Comment

    how I can do that.

    LVL 14

    Accepted Solution

    check these links...they might guide you how and where to write the code

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now