Here are my options (names) for the radio button:
4
2
1
0.5
0.25
I tried using this but it's giving me an error:
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?)
How do I set the value of the multiplier based on what the user set in the radio button?
As said in the error message, RadioButton has no SelectedItem property. You should be getting the radiobutton text instead.
multiplier = Convert.ToDouble(radioButton1.Text);
If you want to check if the radiobutton is selected, use Checked property instead