Re: Does a UserControl have something similar to the ‘AcceptButton’ property of a Form?
At the beginning, when I click ‘Enter’ the 'MyAcceptButton_Click' event is fired, and I see the message box. (So far so good).
But, then the message box is never shown again because of the ‘if sentence’.
I took your sample, and added another UserControl called DummyUserControl to it.
This is what I want to happen:
- When ‘AcceptButUC’ is active, clicking ‘Enter’ fires ‘MyAcceptButton_Click’ and displays the message box.
- When ‘DummyUserControl’ is active, clicking ‘Enter’ does not fire ‘MyAcceptButton_Click’
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.