C#maskedTextBox总和帮助

Rus*_*ari 0 c# winforms

需要帮助从其他蒙版文本框*.0628获取总和

   private void button11_Click(object sender, EventArgs e)
    {
        maskedTextBox2.Text = (
            maskedTextBox1.Text *.0628 + //Cost of Rail
            200
            ).ToString();
    }
Run Code Online (Sandbox Code Playgroud)

TIH*_*Han 5

试试这个.

   private void button11_Click(object sender, EventArgs e)
    {
        maskedTextBox2.Text = (
            (float.Parse(maskedTextBox1.Text) *.0628 + //Cost of Rail
            200)
            ).ToString();
    }
Run Code Online (Sandbox Code Playgroud)