Hi i all i have my combobox as follows i have initially assign the text
property to Select.
And in item collection i have some values as PPD,CCD.
Now i am checking for the initial value like
if (comobox1.SelectedText!="Select")
{
do some thing
}
else
{
i will have a tooltip to raise an error for this as
tooptip.show("req",combobox1);
}
What i need is initiallt combo box should have select if the user does
not select other option from combo box it should raise an error .. Any
Help
Comb box issue
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Hirendra SisodiyaRank #258 · 9.8K reputationPosted Jun 25, 2010, 2:39 AM EDT
try this:
If (comobox1.SelectedIndex! = -1) Then
{
//do some thing
}
else
{
}
thanks
Please mark as answer if it helps
Rasmus Striib6 reputationPosted Jul 4, 2010, 11:53 AM EDT
if (comobox.SelectedIndex > 0)
{
do some thing
}
else
{
show tool tip
}