Hi,
How do i clear a combo box that has text already selected/displayed considering
DropDownStyle was set to DropdownList.
This is basically clearing the display and not the items.
I imagine you've already found the solution to your problem, but the simplest way I know of is to set the SelectedItemIndex to -1 of set the Text property to "".
Cheers
Daniel
my message
fragment:
int c1*a1+c2*a2+c3*a3->max
a1=0;
a2=2*a3;
a3=10;
a3<=b3
txt1.text=max.tostring();
thanks Daniel,
In VS2005 I could not find SelectedItemIndex, instead i tried SelcetedIndex and set it to -1 and
it works. Thank you.
Elmer
int a,b;
bool d1,d2;
a=5;b=7;
if(a>b)
d1=true;
else
d2=false;
print(d1,d2);
end;
ComboBox.SelectedIndex = -1;