【发布时间】:2014-01-27 13:17:59
【问题描述】:
所以这是我的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中设置的值设置乘数?
【问题讨论】:
-
错误信息是什么???
-
@ChristmasUnicorn 已编辑。
标签: c# radio-button