arst06d
Programmer
- Nov 29, 2002
- 324
Hi
I have read that you can specify a default button by using theDefaultButton property of a form or panel, so if the Enter key is pressed within the scope of the form or panel the specified button will be 'clicked'.
Doesn't seem to work.
I have two panels, each containing a table and a button. Each panel has the DefaultButton property set to its contained button.
In the second panel, within the table I also have some textboxes.
I notice that when I'm tabbing around the textboxes in panel 2, the focus highlight shifts to the button up the page in panel1, and hitting Enter will 'click' that button.
Any clues?
I have read that you can specify a default button by using theDefaultButton property of a form or panel, so if the Enter key is pressed within the scope of the form or panel the specified button will be 'clicked'.
Doesn't seem to work.
I have two panels, each containing a table and a button. Each panel has the DefaultButton property set to its contained button.
In the second panel, within the table I also have some textboxes.
I notice that when I'm tabbing around the textboxes in panel 2, the focus highlight shifts to the button up the page in panel1, and hitting Enter will 'click' that button.
Any clues?