This codes seems to fire two events, which I guess is because there is an event fired when I leave one radio button and then another event fired when I enter a new radio button.
Is there a way to do this that will fire only one event? Or is there a better way to do what I am doing, which is basically filling a datagrid based on which quarter the user chooses (4 radio buttons).VB Code:
Private Sub radQ1_CheckedChanged(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles _ radQ1.CheckedChanged, radQ2.CheckedChanged, _ radQ3.CheckedChanged, radQ4.CheckedChanged MsgBox("You just changed the radio button.", _ MsgBoxStyle.OKOnly, "Event Fired") FillDataGrid() End Sub




Reply With Quote