|
-
October 9th, 2002, 07:44 AM
#1
Problem with ComboBox...
Hi all,
I have a Combo Box on my form called Combo1. I have added a number of items to the box using "AddItem". I want to be able to let the user only select an option from the box and not type in something in the space.
Something like this (in a timer control):
If Not Combo1.Text = "Option A" or Not Combo1.Text = "Option B" or Not Combo1.Text = "Option C" Then
Msg = MsgBox("Only select an item from the box")
End If
This code does not work very well though, because if I select "Option A" for example it still produces the message box??
Any Info
Thanks,
Mark
-
October 9th, 2002, 07:59 AM
#2
Just change it's Style property to DropDownList and get rid of all that timer code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|