combobox items

  • Thread starter Thread starter elwaly
  • Start date Start date
E

elwaly

Hi evry one,
I want to build a group of comboboxs that have 3 to 6 items but
initially i want them to start blank on run time, And show the first
item when I press a command button i.e. Each combobox shows it's
first item(0).
thanks.
 
elwaly said:
Hi evry one,
I want to build a group of comboboxs that have 3 to 6 items but
initially i want them to start blank on run time, And show the first
item when I press a command button i.e. Each combobox shows it's
first item(0).
thanks.

I believe you do:

Combobox.SelectedIndex = -1

You may have to do a:

ComboBox.SelectedText = String.Empty

Then when your hit your button you do:

Combobox.SelectedIndex = 0

Hope it helps

Chris
 
Hi,
You may try this. Double click on the command button and in its event add
line like
combobox.items.add("your desired text").
See, this will work, when you execute the app.
Mayur Tendulkar
 
Back
Top