I am new to this and am confused as to why when the calculate button is clicked, the total is way off. Any guidance or pointing out of mistakes would be greatly appreciated.
Public Class Form1
Dim IntegerValue1 As Double
Dim IntegerValue2 As Double
Private Sub GroupBox1_Enter(sender As Object, e As EventArgs) Handles GroupBox1.Enter
If RadioGlazed.Checked = True Then
IntegerValue1 = 0.65
ElseIf RadioSugar.Checked = True Then
IntegerValue1 = 0.65
ElseIf RadioChocolate.Checked = True Then
IntegerValue1 = 0.85
ElseIf RadioFilled.Checked = True Then
IntegerValue1 = 1.0
End If
End Sub
Private Sub GroupBox2_Enter(sender As Object, e As EventArgs) Handles GroupBox2.Enter
If RadioNone.Checked = True Then
IntegerValue2 = 0.0
ElseIf RadioRegular.Checked = True Then
IntegerValue2 = 1.8
ElseIf RadioCapp.Checked = True Then
IntegerValue2 = 2.5
End If
End Sub
Private Sub ButtonCalc_Click(sender As Object, e As EventArgs) Handles ButtonCalc.Click
SubTotal.Text = (IntegerValue1) + (IntegerValue2)
End Sub