F
Fred
Hi all,
On my Windows Form, I'm having a SplitContainer control. Each panel
(top & bottom) has a ToolStrip that contains a TextBox and a button.
When a user enters text in the TextBox and presses return, the action
that belongs to the corresponding button should be fired. Therefore, I
could use the AcceptButton of my Windows Form. However, I have two text
boxes on my form (on each ToolStrip). Can I use something like an
AcceptButton for each panel/ToolStrip separately, so the corresponding
code will be executed? Or should I use something like the KeyPress
event and filter out the return key?
Using: VS 2005 C#, Express Edition
Thanks in advance,
Fred
On my Windows Form, I'm having a SplitContainer control. Each panel
(top & bottom) has a ToolStrip that contains a TextBox and a button.
When a user enters text in the TextBox and presses return, the action
that belongs to the corresponding button should be fired. Therefore, I
could use the AcceptButton of my Windows Form. However, I have two text
boxes on my form (on each ToolStrip). Can I use something like an
AcceptButton for each panel/ToolStrip separately, so the corresponding
code will be executed? Or should I use something like the KeyPress
event and filter out the return key?
Using: VS 2005 C#, Express Edition
Thanks in advance,
Fred