I have a rather complex application that has many UI components. I'm attempting to use the radDock and create a ToolWindow that has search capabilities. This ToolWindow has a RadPanel on it with RadTextBoxes for the different fields they can search. It also has a RadButton to perform the search. What I'd like to do is have it so when the user clicks in the panel or clicks in the textbox, that the AcceptButton for the form becomes the search button...
example:
private void customerSearchNumberTextBox_GotFocus(object sender, EventArgs e)
{
this.AcceptButton = customerSearchButton;
}
private void customerSearchButton_Click(object sender, EventArgs e)
{
int i = 1;
}
However, this isn't working...the GotFocus event fires, and the above code is executed, but when I hit 'enter' nothing happens....the click event doesn't fire...thoughts?