Results 1 to 8 of 8

Thread: keypress and keydown

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    Resolved keypress and keydown

    hello

    Is keypress fired after keydown or vice versa
    Last edited by vb_student; Sep 24th, 2005 at 05:05 PM.

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: keypress and keydown

    its Keydown > keypress > change > keyup
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    Re: keypress and keydown

    thanks static
    does keydown call the keypress method and so on or does
    keypress occur after keydown part of a broader key routine?

    what i mean is there as key routine which is something like

    VB Code:
    1. sub key_routine
    2. keydown
    3. keypress
    4. key_change
    5. key_up
    6. end sub

    i guess key_click is not part of this routine

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: keypress and keydown

    However VB handles the "Key" events is hidden from us so there is no way to tell. BTW there is no such thing as key_change or key_click because you don't change a given key and neither do you click it..

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    Re: keypress and keydown

    thanks for the reply Martin

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: keypress and keydown

    The events are presumably all fired from the control's WndProc, upon the different messages.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    Re: keypress and keydown

    thanks for the reply penagate

    what is WndProc?
    is it an event?

  8. #8
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: keypress and keydown

    WindowProc

    Every window has one. Not all VB controls do however because some are "windowless" i.e. painted straight onto the form itself. Such as a Label.

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