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
Printable View
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
Could you add a blank item at the end and just select it as required?
------------------
Mark Sreeves
Analyst Programmer
[email protected]
A BMW Group Company
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
You can clear the contents of any style combobox with MyComboBox.Clear.
------------------
Marty
Thanks a whole lot... i didn't know -1 value existed at all.. :P haha