How to set combobox.text = ""

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

I got two comboBox A & B, If use choose B, the text in combobox should be
blank.\
I try combobox.Text, selecteditem,displaymember = ""
But It seems useless. Please help Thanks
 
Hi Agnes,

BTW - there is a bug in the selectedindex = -1 routine; to overcome it, you
should always call it twice, thus:
combobox1.selectedindex = -1
combobox1.selectedindex = -1

HTH,

Bernie Yaeger
 
Bernie,

Thanks for the tip, I didn't know that (along with just about anything else
about .Net!).

Doug
 
Back
Top