hello Is keypress fired after keydown or vice versa
Last edited by vb_student; Sep 24th, 2005 at 05:05 PM.
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"
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: sub key_routine keydown keypress key_change key_up end sub i guess key_click is not part of this routine
sub key_routine keydown keypress key_change key_up end sub
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..
Tips, Examples & Tutorials: A valuable forum tool • Generate unique TreeView keys • TreeView with "open" and "closed folder" icons • Time code using GetTickCount • How to trap the Tab key • Scroll a form • NumberBox ActiveX control • Color a ListView row • An InputBox form • How to use SaveSetting and GetSetting • A program registration scheme • Spellcheck a Textbox • Resize controls • Open Windows Explorer at Last Visited Path • A Blackjack Game • Count lines of code • Private Message Viewer • Copy/Paste VB Code • Paste VB Code Add-In • Insert Procedure Names Add-In • A calculator for the game of Spider • My review of REALbasic 2008 • VB6 Debug Tutorial • Picture/Video Viewer • VBF Photo Contest Winners 2009 - 2016
thanks for the reply Martin
The events are presumably all fired from the control's WndProc, upon the different messages.
thanks for the reply penagate what is WndProc? is it an event?
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.
Forum Rules