因此,這裏有我的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