|
-
Aug 10th, 2005, 04:48 PM
#1
Thread Starter
Lively Member
Form_KeyPress having CommandButton with focus
Hi. As most of you know, we can enable the form to get all the keyboard events by setting its KeyPreview property to True. But if we have a CommandButton with the focus and we press the Enter key, we'll get a Command1_Click event instead of the Form_KeyPress. The same occurs if we press the arrow keys , when the focus belongs to a ListBox control... do you know if there is any workaround to do make the Form_KeyPress be fired event in these cases?
Thank you guys
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
|