06-12-16, 03:43 AM
ده الحل
PHP كود :
Private Sub ComboBox1_Leave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.Leave
If ComboBox1.Items.Count >= 1 Then
Dim resultIndex As Integer = -1
resultIndex = ComboBox1.FindStringExact(ComboBox1.Text)
If resultIndex > -1 Then
Exit Sub
Else
ComboBox1.SelectedIndex = 0
MessageBox.Show("خطأ!")
End If
Else
ComboBox1.Text = ""
End If
