I am having an issue getting a yes/no box to work correctly when the selected item is changed. the issue i'm having is that it fires the event as soon as the form loads up as well as when it is an item is chosen from the drop down.
The combo box has 6 items in it that is populated on the properties of the item, not programatically.
The combo box has 6 items in it that is populated on the properties of the item, not programatically.
Code:
Private Sub cmbJoinFarm_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbJoinFarm.SelectedIndexChanged
If MsgBox("You have selected to join the " & cmbJoinFarm.SelectedItem & ". Continue to join server to this farm?", MsgBoxStyle.YesNo) = vbNo Then
MsgBox("Select correct farm and click Execute or exit program.")
End If
End Sub