|
-
May 7th, 2008, 09:32 AM
#11
Re: Does a UserControl have something similar to the ‘AcceptButton’ property of a Form?
I don’t understand how what you wrote helps me.
Can you explain, please?
But, first let me try to explain my problem again. (Hopefully, more clearly …)
Let’s say I have 3 UserControls on my form: MyUserCtrl, UserCtrl2, & UserCtrl3. All of them contain buttons, text-boxes, etc.
When MyUserCtrl is in focus, I would like pressing ‘Enter’ to fire the ‘Click’ event of a specific button on this UserControl.
If MyUserCtrl is not in focus, pressing ‘Enter’ should not do so.
How can I achieve that?
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
|