Home All Groups Group Topic Archive Search About
Author
29 Jan 2006 3:37 PM
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.

Author
29 Jan 2006 4:43 PM
I Don't Like Spam
elwaly wrote:
> 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
Author
30 Jan 2006 1:09 AM
Mayur Tendulkar
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

Show quoteHide quote
"elwaly" wrote:

> 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.
>
>