Dave,
This is gonna sound weird, but try setting the .SelectedIndex to -1 twice. Sometimes it's necessary to do that, and I've never figured out why.
Oh, and you might want to try .Text = "" also.
~~Bonnie
>Hi,
>
>With the ComboBox...
>
>What is the equivalent code of ListIndex in Vb.Net ?
>
>I tried SelectedIndex property but it's not work. I still see the text in the combobox.
>
>Here's my code...
>
>'Fill ManPowerCtrl
> With ManPowerCtrl
> .DataSource = mManPowerDal.GetManPowerAvailableByCriteria(mManPowerDate, mManPowerShift).Tables(0)
> .DisplayMember = ManPowerDAL.ManPowerEmploye
> .ValueMember = ManPowerDAL.ManPowerIdEffectif
> .SelectedIndex = -1
> End With
>
>
>Thank in advance...