Thanks Einar,
I tried that but it still pops the message! somehow I got something fouled.
Glenn
>Glenn,
>Try the following code:
>
>cboSearchMethod.Items.Add("Products");
>cboSearchMethod.Items.Add("Suppliers");
>cboSearchMethod.SelectedIndex = 0;
>
>
>Einar
>
>
>>I am loading a combobox with only two values. After loading the CBO when I set the initial text value in the the CBO .Net spits out error 13 "Cast from sting "Products" to type double is not valid"
>>I repeat "Arghhh!"
>>
>>Check this simple code please:
>>
>>cboSearchMethod.Items.Add("Products")
>>cboSearchMethod.Items.Add("Suppliers")
>>cboSearchMethod.Text = "Products"
>>
>>
>>
>>Thanks
>>
>>Glenn