Hello All!
How can I create a ComboBox that it got only the below values:
OFF
-10
-15
-20
-25
-30
-35
-40
-45
And the user cant enter another value.
Thanks :thumb:!
Y
Printable View
Hello All!
How can I create a ComboBox that it got only the below values:
OFF
-10
-15
-20
-25
-30
-35
-40
-45
And the user cant enter another value.
Thanks :thumb:!
Y
By setting the Combox's Style property to Dropdownlist, it will allow users to only select the item...Code:Private Sub Form_Load()
Combo1.AddItem "item1"
Combo1.AddItem "item2"
Combo1.AddItem "item3"
'etc...
End Sub
Thanks!
But still the user can type a value that he wants...
Can I disable the option to write in the ComboBox?
Thanks Again!
Y
By setting the Combox's Style property to DropdownlistQuote:
Can I disable the option to write in the ComboBox?
And, even if the user types something different it will not be made a member of the combo box unless you, the programmer, add it through code.
Thanks!
Another question,
How can I make that the first item in the list will appear at running?
Thanks!
Y
Thanks!
And how can I make that the second item in the list will appear at running?
Code:Combo1.ListIndex = 1
Thanks!