How to Clear Combo Box Value When Using the DropDownStyle=DropDownList

DeniseGoodheart
DeniseGoodheart used Ask the Experts™
on
Good Day:

I am using VB.NET 2005.  I have a combo box control with DropDownStyle=DropDownList.  After the user saves the record; I would like to clear the combo box control, but it does not work when using the following:

 cboSalesPerson.Text = ""
 cboSalesPerson.clear()

Any Suggestions?

I know if I change the DropDownStyle then it is possible, but I need to use the DropDownList Style.

Thanks,
Denise
 
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2008
Commented:
cboSalesPerson.SelectedIndex = -1

Bob

Commented:
cboSalesPerson.Items.clear()
cobSalesPerson.text = ""

Author

Commented:
Thanks :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial