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 baruaPosted Jun 5, 2012, 4:00 AM
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.
Mohd HadiPosted Jun 5, 2012, 4:12 AM
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.
Anil KumarPosted Jun 5, 2012, 3:37 AM
radiobtn 2:
Mohd HadiPosted Jun 5, 2012, 3:12 AM
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 KumarPosted Jun 5, 2012, 2:58 AM
Abhijit baruaPosted Jun 5, 2012, 1:15 AM
http://www.c-sharpcorner.com/Forums/Thread/174587/text-box-with-radiobutton-how-to-validate.aspx
Mohd HadiPosted Jun 4, 2012, 9:21 AM
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 baruaPosted Jun 4, 2012, 8:28 AM