Hellow sir, i want to know about the key press event to toggle throught text boxes , combo boxes ,list boxes etc.plz tell me all about the key press event details and simple code to execute it .
Software/Hardware used:
i am using the vb 6
ASKED:
January 27, 2010 7:32 AM
UPDATED:
October 17, 2011 1:27 PM
I would avoid the KeyPress or KeyDown events unless you really understand what these mean and have a specific need to process these events. When you play with the KeyPress/KeyDown events, you need to worry about the states of multiple keys (shift, alt, fn) and it is real easy to get wrapped around the axle with recursive event entries.
It is MUCH safer to handle Change events, or if you must deal with key events, I would suggest using the KeyUp event, which will only occur once per key press. By waiting until the user releases the keys, the event handling is much simplified.