小编Bio*_*bio的帖子

输入字符串格式不正确C#

在此输入图像描述

   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#

0
推荐指数
1
解决办法
621
查看次数

标签 统计

c# ×1