That's right . I've just figured it out !. To avoid a lot of hassle , use Click event .
VB Code:
Private Sub radQ1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles radQ1.Click, radQ2.Click, radQ3.Click, radQ4.Click Select Case DirectCast(sender, RadioButton).Name Case "radQ1" MsgBox("You just changed the radio button.") 'FillDataGrid() Case "radQ2" MsgBox("You just changed the radio button.") 'FillDataGrid() Case "radQ3" MsgBox("You just changed the radio button.") 'FillDataGrid() Case "radQ4" MsgBox("You just changed the radio button.") 'FillDataGrid() End Select End Sub




. To avoid a lot of hassle , use Click event .

Reply With Quote