private void textquantity_TextChanged(object sender, EventArgs e)
{
string lowitem = "lowitem";
string highitem = "highitem";
if (Convert.ToInt32(textquantity.Text) <= 5)
texthilow.Text = lowitem;
else
texthilow.Text = highitem;
}
Run Code Online (Sandbox Code Playgroud)
我总是得到一个错误
if (Convert.ToInt32(textquantity.Text) <= 5)
Run Code Online (Sandbox Code Playgroud) c# ×1