i am using c# and i have radion buttons that i want to check them, then when i click ok button it takes me to the required form corresponding to the text on the radio button.
thanks

So you want to add code in your button click that clicks if the particular radio button is checked and redirect as appropriate.

if(RadioButton1.Checked) {
  // do something
} else if (RadioButton2.Checked) {
    // do something else
}

Is that what you are after?

yes i have done that. but between the culy brackets i want to navigate to another form.
i want to go to the donation table when i have checked the radio button and clicked the ok button.
so what should i put in between the { } so that i can navigate to the other form.

if (RadioButton1.Checked)
{
Form30.Show();
}

I believe that is what you want.
If not say something.

Hope this helps. :)

This code:

if(RadioButton1.Checked) 
{
    Form2 f2 = new Form2();
    f2.Show();
} 
else if (RadioButton2.Checked)
{
    // do something else
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.