Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a radiobutton in my usercontrol. when click on that a messagebox will show. but after showing the message box, radiobutton is unchecked. can anyone helpme to solve this issue?

my code

C#
private void StaffRadioButton_Checked(object sender, RoutedEventArgs e)
        {
MessageBoxResult result = MessageBox.Show("do u want to continue", "Confirm", MessageBoxButton.YesNoCancel, MessageBoxImage.Question);
             if (result == MessageBoxResult.Yes)            {}
}


Thanks in advance
Kunjammu
Posted
Updated 6-Dec-12 1:05am
v3
Comments
[no name] 6-Dec-12 1:41am    
Post your code...
Kunjammu 6-Dec-12 2:04am    
MessageBoxResult result = MessageBox.Show("do u want to continue", "Confirm", MessageBoxButton.YesNoCancel, MessageBoxImage.Question);


if (result == MessageBoxResult.Yes) {}
[no name] 6-Dec-12 2:09am    
entire code !!! and use "Improve Question" widget to get it updated
Programm3r 6-Dec-12 6:43am    
Hi - could you please update your question so that we can have a better understanding of your issue. Thanks!
Kunjammu 6-Dec-12 6:48am    
done

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900