因此,这里有我的options
(地名)的radio button
:如何获取单选按钮的值?
4
2
1
0.5
0.25
我试图用这个,但它给我一个错误:
multiplier = Convert.ToDouble(radioButton1.SelectedItem.ToString());
错误消息:
'System.Windows.Forms.RadioButton' does not contain a definition for 'SelectedItem' and no extension method 'SelectedItem' accepting a first argument of type 'System.Windows.Forms.RadioButton' could be found (are you missing a using directive or an assembly reference?)
如何我是否根据用户在radio button
中设置的乘数来设置乘数的值?
什么是错误信息??? – 2013-12-17 00:05:06
@ChristmasUnicorn编辑。 – puretppc