C#如何将数值选择控件(NumericUpDown)中当前的值保存到double型的a变量里面?

如题
2024-12-02 03:50:25
推荐回答(1个)
回答1:

        private void button1_Click(object sender, EventArgs e)
        {
            double a = (double)this.numericUpDown1.Value;
            MessageBox.Show(a.ToString());
        }