Reference no: EM132200948
Private Function Cost (ByVal PRICE_1_Decimal As Decimal, ByVal Price_2_Decimal As Decimal, ByVal Price_3_Decimal As Decimal, ByVal Price_4_Decimal As Decimal) As Decimal
If RadioButton1.Checked = True Then
Return Price_1_Decimal
ElseIf RadioButton2.Checked = True Then
Return Price_2_Decimal
ElseIf RadioButton1.Checked = True And CheckBox1.Checked = True Then
Return Price_3_Decimal
ElseIf RadioButton2.Checked = True And CheckBox1.Checked = True Then
Return Price_4_Decimal
End If
End Function
The code will not return the correct values for these two lines of code:
ElseIf RadioButton1.Checked = True And CheckBox1.Checked = True Then
Return Price_3_Decimal
ElseIf RadioButton2.Checked = True And CheckBox1.Checked = True Then
Return Price_4_Decimal
I tried adding an event handler for the three controls (radiobutton1, radiobutton2, and checkbox1). I keep getting an error that I have two many arguments.