Combobox_SelectedIndex Fires Twice :(

PROKA

Junior Contributor
Joined
Sep 3, 2003
Messages
249
Location
Bucharest
I have this code
Visual Basic:
    Private Sub cmbEditMessenger_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbEditMessenger.SelectedIndexChanged
        txtEdit.Text = colEdit(cmbEditMessenger.SelectedIndex)
    End Sub

It fires twice !!! ( I put a breakpoint and checked it )

after the first time the results are ok, index = whatever I chosed in the combo box, but the 2nd time always returns selectedindex=0 and displays the first item in the combo box :((
 
Nevermind, I figured it out ... After 2 hours of wondering, I decided to post it . 5 mins after posting , I got the ideea of how to fix it :) Sorry for disturbing u guys
 
Back
Top