int i = int.Parse(textBox1.Text); :)

解决方案 »

  1.   

    1.int iText = Int32.Parse(textBox1.Text)      // iText就是你需要的
    2.this.close()
    或者是Application.Exit();
      

  2.   

    int i =int.Parse(textBox1.Text);
      

  3.   

    try
    {
      int i=Convert.ToInt32(Text1.Text.ToString().Trim();
    }
    catch(System.Except a)
    {
    ...
    }
      

  4.   

    在text控件中取得数字,首先得确定空间中的字符串是数字
    然后再用convert.toint32, or ,  int.parse() herofyf() 所写的格式就可以
      

  5.   

    convert.toInt16(text.Text);window.close()