Results 1 to 9 of 9

Thread: Checked Change Fires two events? (Resolved)

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2003
    Location
    Three Rivers, MI
    Posts
    354

    Checked Change Fires two events? (Resolved)

    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.
    VB Code:
    1. Private Sub radQ1_CheckedChanged(ByVal sender As Object, _
    2.         ByVal e As System.EventArgs) Handles _
    3.         radQ1.CheckedChanged, radQ2.CheckedChanged, _
    4.         radQ3.CheckedChanged, radQ4.CheckedChanged
    5.  
    6.         MsgBox("You just changed the radio button.", _
    7.             MsgBoxStyle.OKOnly, "Event Fired")
    8.         FillDataGrid()
    9.  
    10.     End Sub
    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).
    Last edited by BukHix; Jun 24th, 2004 at 08:18 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width