May I have a similar wrote
If (comboBox. SelectedValue="other" https://bbs.csdn.net/topics/
{
SQL +='... '
}
CodePudding user response:
If you set the comboBox value is design view one by one to fill in, behind you write rightIf it is binding data sources, this is not recommended!
CodePudding user response:
Can, but you'd better don't do this, to the cbo assignment, the Value can be stored in the back of the as a key word, just in front of the display, so if you only front-end string, use SelectText directlyCodePudding user response:
This can not see your assignment zha tiedCodePudding user response:
=is an assignment==are you should use a comboBox. SelectedValue. ToString () to compare another string