Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Combo box in vb.net

hi all

please feel sorry for me hehe

i have a problem i have never added anything to a combo box in vb.net before and i am wandering if anyone could help me

i have a check box which when selected will add 1 through 12 into the combo box and when unselected must add 1 through 24 but i cant seem t get it right

so far i have for my combobox section as follows

with combobox3
items.add ("00", 1)
but it underlines it and does not help

thanks in advance
[512 byte] By [Spumbu1977] at [2007-11-11 7:54:57]
# 1 Re: Combo box in vb.net
Please post technical questions to the .NET Technical forum, rather than .NET Discussion. Thanks!

What does the tooltip say when you hover your mouse pointer over the underlined code? Alternatively, try to build your project; the error message should appear in the Output window. What does it say?
Phil Weber at 2007-11-11 21:48:20 >
# 2 Re: Combo box in vb.net
Are you using a period to identify Items as a member in your With block, like so?...

With ComboBox3
.Items.Add("00", 1)

End With
FauxQuixote at 2007-11-11 21:49:15 >