I have created a form frmData without any controls in it. Then I created a
main form frmMain; added a button btnOpenFormData and added code in button
click event to add radio button acontrol dynamically to frmData as:
Code in frmMain_load event:
frmData = new frmData();
RadioButton rdo = new RadioButton();
rdo.Name = "MyRadiobutton1";
rdo.Text = "My Radio Button";
f.Controls.Add(rdo);
f.show();
When application is launched; frmData is diaplsyed on top of frmMain.
How do I add an event MyRadiobutton1_Click so when radio button on frmData
is clicked then the form will be closed automatically.