numericUpDown1.Value 的数据为decimal 类型
Int.Parse 的参数为String
So: Int32.Parse(this.numericUpDown1.Value.ToString());这样就可以了。
C#中如何获取numericUpDown中的数字为Int型
最新推荐文章于 2024-03-26 16:54:11 发布
numericUpDown1.Value 的数据为decimal 类型
Int.Parse 的参数为String
So: Int32.Parse(this.numericUpDown1.Value.ToString());这样就可以了。