Hello, Michael,
Perhaps you could iterate through the controls on your form, and for
those that are radio buttons, use AddHandler to assign the same routine
as the CheckedChanged handler for all of them. Something like:
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
For Each ctl As Control In Me.Controls
If (TypeOf ctl Is RadioButton) Then
Dim rbt As RadioButton = DirectCast(ctl, RadioButton)
AddHandler rbt.CheckedChanged, _
AddressOf Common_CheckedChanged
End If
Next
End Sub
Private Sub Common_CheckedChanged(ByVal sender As Object, _
ByVal e As System.EventArgs)
Dim rbtSender As RadioButton = DirectCast(sender, RadioButton)
MsgBox(rbtSender.Name & " is now " & rbtSender.Checked)
End Sub
Cheers,
Randy