abstracted ab = new abstracted(Double.Parse(this.textBox1.Text.ToString()), Double.Parse(this.textBox2.Text.ToString()));

解决方案 »

  1.   

    this.textBox1.ToString()改為this.textBox1.Text
    this.textBox2.ToString()改為this.textBox2.Text
      

  2.   


    this.TextBox1.Text = "1";Double number = Convert.ToDouble(this.TextBox1.Text);
      

  3.   

    Double number = Convert.ToDouble(this.TextBox1.Text.Tirm());
      

  4.   

    foreach(control c in page.form1.controls)
    {
        if(c.TypeName=="TextBox")
        {
          TextBox t = new TextBox;
          t.Text = convert.Todouble(c.Text);
        }}