VB Code:
Dim bFormLoading As Boolean = True
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim arText() As String = {"", "Red", "White", "Blue"}
ComboBox1.DataSource = arText
ComboBox2.DataSource = arText
'MsgBox("form_load")
bFormLoading = False
End Sub
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
If bFormLoading = False Then MsgBox("ComboBox1")
End Sub
Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged
If bFormLoading = False Then MsgBox("ComboBox2")
End Sub
When you run the program and select something from