I want to pass a string to a variable based on if the user checks a radio button that is contained in a group box
what event for the group box will trigger based on if one of the radio button objects is checked?
Newbie in search of knowledge
what event for the group box will trigger based on if one of the radio button objects is checked?
Code:
Private Sub gbxToTemp_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gbxToTemp.Enter
Dim ToTemp As String
If radFahrenheit.Checked Then
ToTemp = "Fahrenheit"
ElseIf radCelsius.Checked Then
ToTemp = "Celsius"
ElseIf radReamur.Checked Then
ToTemp = "Reamur"
ElseIf radRankine.Checked Then
ToTemp = "Rankine"
ElseIf radKelvin.Checked Then
ToTemp = "Kelvin"
End If
End Sub
Newbie in search of knowledge