|
-
Jan 31st, 2000, 11:00 PM
#1
Thread Starter
New Member
How can i make my combobox not editable ?
I only want the users to be able to pick from the list, not edit the items in it. I tried to lock it, but then i couldnt choose any item at all..
thnx for any help
-
Jan 31st, 2000, 11:22 PM
#2
Hyperactive Member
Hi, dialafc.
Set Style property to 2-Dropdown List.
Larisa
-
Feb 1st, 2000, 12:03 PM
#3
New Member
Hi, setting the property causes you to be unable to add items to the drop-down box
programmatically.
I use:
MsgBox "No Typing allowed here. Please select only!"
Combo43.Text = ""
regards,
AJM
-
Feb 1st, 2000, 12:19 PM
#4
Frenzied Member
As far as I know Abie is wrong since you can always add items to the list programmatically (even it is a drop-down listbox only). What he may mean is it is impossible to set the .Text property of the combobox to something that isn't in the dropdown list..
------------------
Mark "Buzby" Beeton
VB Developer
[email protected]
-
Feb 1st, 2000, 12:19 PM
#5
New Member
Hi, I forgot to tell.
Put this on the KeyPress function
Private Sub Combo43_KeyPress(KeyAscii As Integer)
MsgBox "No Typing allowed here. Please select only!"
Combo43.Text = ""
End Sub
Regards
AJM
-
Feb 1st, 2000, 05:39 PM
#6
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
|