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