I have a user control consisting of 3 text fields, 3 buttons and a grid. I can set the defaultbutton property of the form, but this will affect only one button.
Each combination of text fields / buttons should have a behavior that, when the text field has focus, pressing the "On" key should launch a button associated with it.
To further complicate the issue, this is used inside the homepage implementation.
Is there any way to do this? As far as I can tell, .NET will only allow one button by default - it does not explicitly associate text fields and buttons.
I welcome your ideas.
source
share