I am using wpf with c# , i am new to programing ,ok
i have text box and two radio button , i want to redirect for anotherform after atleast one radiobutton is check please help me
here is the design code
and here is the .cs code
private void btnOk_Click(object sender, RoutedEventArgs e)
{
if (txtInvoiceType.Text == String.Empty)
{
MessageBox.Show("Fill textbox");
return;
}
if (!(this.rbTyres.IsChecked || this.rbRawMaterial.IsChecked))
{
MessageBox.Show("Select atleast one radio");
return;
}
}

Abhijit baruaRank #3,722 · 397 reputationPosted Jun 5, 2012, 12:00 AM EDT
And at .cs page below code
Here i take two form one mainwindow another window and based on radio button checked, on button click i send to another form.
i attach my page also u can check.
Abhijit baruaRank #3,722 · 397 reputationPosted Jun 4, 2012, 4:28 AM EDT
Mohd Hadi7 reputationPosted Jun 4, 2012, 5:21 AM EDT
and after that user will check one radiobutton from two radio buttons and than
user press enter to get new form
radiobtn 1 :
radiobtn 2:
Abhijit baruaRank #3,722 · 397 reputationPosted Jun 4, 2012, 9:15 PM EDT
http://www.c-sharpcorner.com/Forums/Thread/174587/text-box-with-radiobutton-how-to-validate.aspx
Anil KumarRank #367 · 6.8K reputationPosted Jun 4, 2012, 10:58 PM EDT
Mohd Hadi7 reputationPosted Jun 4, 2012, 11:12 PM EDT
if i check first radio button it should redirect to tyre form or if check second radio button it should redirect to rawmaterial form after button click event
your reply is highly needful
Anil KumarRank #367 · 6.8K reputationPosted Jun 4, 2012, 11:37 PM EDT
radiobtn 2:
Mohd Hadi7 reputationPosted Jun 5, 2012, 12:12 AM EDT
i have textbox where user have to enter only 1 or 2 after that he has to check radio button in button event so , how to write this in button even along with radio button please help.