Results 1 to 3 of 3

Thread: Basic Key Pressing Event?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Posts
    110

    Resolved Basic Key Pressing Event?

    Does anybody know which event fires in VB when you press a key at any given time, without it having to be in a text box or combo box?
    Last edited by ChR0NiC; Jun 3rd, 2005 at 02:43 PM.

  2. #2
    Addicted Member
    Join Date
    May 2005
    Posts
    168

    Re: Basic Key Pressing Event?

    Hi,

    Assuming that a form's property: KeyPreview is true then the form-keypress event will fire and then control' keypress events.

    Have a good one!
    BK

  3. #3
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286

    Re: Basic Key Pressing Event?

    Otherwise it goes to the active control's KeyPress or KeyDown event (if they have one).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width