Click to See Complete Forum and Search --> : Combo Box Dilemma
ckay
Nov 23rd, 1999, 04:27 PM
How do i modify the style 2 combobox text in runtime.
i just want to clear it of by using combo1.text = ""
but an read only error occur... anyway aound this?
this is a style 2 combobox.. used bcos i don't want the user to type into it
Mark Sreeves
Nov 23rd, 1999, 04:40 PM
Could you add a blank item at the end and just select it as required?
------------------
Mark Sreeves
Analyst Programmer
Mark.Sreeves@Softlab.co.uk
A BMW Group Company
jpark
Nov 24th, 1999, 12:21 AM
To empty the dropdown list combo box , do like this
ComboBox.ListIndex = -1.
If u want to add new set of items, clear combo box and use the AddItem.
HTH
Joon
MartinLiss
Nov 24th, 1999, 01:00 AM
You can clear the contents of any style combobox with MyComboBox.Clear.
------------------
Marty
ckay
Nov 25th, 1999, 09:09 AM
Thanks a whole lot... i didn't know -1 value existed at all.. :P haha
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.