You can derive a new control from the RadioButton control and enable the
double-click behavior as shown below.
public class DoubleClickRadioButton : RadioButton
{
public DoubleClickRadioButton()
{
this.SetStyle(ControlStyles.StandardClick |
ControlStyles.StandardDoubleClick, true);
}
}
Then you can hook into the DoubleClick event of each
"DoubleClickRadioButton" control and route the event to the same handler. In
this handler you can call the PerformClick method of the OK button.
public class Form1 : System.Windows.Forms.Form
{
...
public Form1()
{
InitializeComponent();
this.radioButton1.DoubleClick += new
EventHandler(DoubleClickRadioButton_DoubleClick);
this.radioButton2.DoubleClick += new
EventHandler(DoubleClickRadioButton_DoubleClick);
this.radioButton3.DoubleClick += new
EventHandler(DoubleClickRadioButton_DoubleClick);
}
...
private void DoubleClickRadioButton_DoubleClick(object sender, EventArgs
e)
{
this.btnOK.PerformClick();
}
}