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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Sep 28, 2012, 11:10 AM EDT
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