Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arghhhh! Setting a combo text value
Message
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
00990508
Message ID:
00990579
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform