Home If Not ComboBox.SelectedItem = "String" (Or) "String2" (Or) "String3"
Reply: 0

If Not ComboBox.SelectedItem = "String" (Or) "String2" (Or) "String3"

user421
1#
user421 Published in May 23, 2018, 4:39 pm

I wanted to make an application that when I wrote some item that is not in the combobox, it would show a messagebox saying it was to choose one of the items in the combobox.

I tried this, it probably has nothing to do with what I wanted :P

    If Not ComboBox1.SelectedItem = "Português - BR" Or "English - US" Or "Espanol - ES" Then
        MsgBox("Error")
    End If
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.314471 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO