|
-
Jul 28th, 2001, 10:58 PM
#1
What is key preview do ?
All use it and when I want to move an object I dont use it and it work....why should I use Me.KeyPreview = True in my form load ?
-
Jul 29th, 2001, 02:16 AM
#2
PowerPoster
hi
Amazing what u find in the help file 
Remarks
You can use this property to create a keyboard-handling procedure for a form. For example, when an application uses function keys, you'll want to process the keystrokes at the form level rather than writing code for each control that might receive keystroke events.
If a form has no visible and enabled controls, it automatically receives all keyboard events.
To handle keyboard events only at the form level and not allow controls to receive keyboard events, set KeyAscii to 0 in the form's KeyPress event, and set KeyCode to 0 in the form's KeyDown event.
Note Some controls intercept keyboard events so that the form can't receive them. Examples include the ENTER key when focus is on a CommandButton control and arrow keys when focus is on a ListBox control.
Couldnt have put it any better myself
Regards
Stuart
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|