PS... If I try to set the text property, whatever I type in there is
erased... This is what I thought I would have to do to set a default...
Brad
> In my vb.net 2005 project I have a few combo boxes where I want to set a
> default value. I am not binding these combo boxes - I am loading the
[quoted text clipped - 6 lines]
>
> Thanks, Brad
Kerry Moorman - 27 Jul 2007 22:26 GMT
Brad,
If the combo box contains strings, you can set the SelectedItem property to
one of the strings to select it.
Or you can set the SelectedIndex property to the zero-based index of the
item to be selected.
Keep in mind that selecting a default value will have the side effect of
causing the SelectedIndexChanged event to fire.
Kerry Moorman
> PS... If I try to set the text property, whatever I type in there is
> erased... This is what I thought I would have to do to set a default...
[quoted text clipped - 10 lines]
> >
> > Thanks, Brad