im trying to add two radio buttons together to get a full price, they are split up by two group boxes. Meals and dormitories, I have the prices on how much they are, but I dont know how to put the right radio buttons in the right places and then add them up, here is the code I have so far
Public Class Form1
Const decRadioButtonmichigan As Decimal = 1500.0 ' this is suppose to go in the dormitories group box
Const decRadioButtoneagle As Decimal = 1600.0 ' this is suppose to go in the dormitories group box
Const decRadioButtonhuron As Decimal = 1200.0 ' this is suppose to go in the dormitories group box
Const decRadioButtonSuperior As Decimal = 1800.0 ' this is suppose to go in the dormitories group box
Const decRadioButtonlunch As Decimal = 560.0 ' this is suppose to go in the meal group box
Const decRadioButtondinner As Decimal = 1102.0 ' this is suppose to go in the meal group box
Const decRadioButtonUnlimited As Decimal = 1500.0 ' this is suppose to go in the meal group box
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' this is to close the application
Me.Close()
End Sub
Private Sub RadioButtonlunch_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButtonlunch.CheckedChanged
End Sub
Private Sub GroupBox1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox1.Enter
' this is my dormitories group box
End Sub
Private Sub GroupBox2_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox2.Enter
' this is my meal box
End Sub
End Class
I still need an answer label, but I just dont know how to put the radio buttons that are suppose to go in the assigned group box and add one radio button from each group box to the other group box to produce an answer, basically how do I take one of the radio buttons from each of the two group boxes and add both of them up to produce an answer