Dear All,
I have a group of radio buttons inside a Groupbox and would like to get a feedback as to which radio button is selected when the user clicks on any one of them.
Regards
Dear All,
I have a group of radio buttons inside a Groupbox and would like to get a feedback as to which radio button is selected when the user clicks on any one of them.
Regards
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Sep 28, 2012, 3:10 PM
I'd then add this code to display which RadioButton is currently checked. There is also some code to prevent the MessageBox from popping up when the application first starts as the CheckedChanged handler will then be called automatically when the first RadioButton's checked status changes from false to true by default:
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged, RadioButton2.CheckedChanged, RadioButton3.CheckedChanged 'etc if more than three