Question when writing the function below, I am not getting my MessageBox.Show doesnt show. However if one box is checked it will show. and if both are selected the lblLabor will display properly. What am I doing wrong? Also, is this "validating a function"? Do I need the '"DoInputValidation()"?
Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click
If chkBoxOilChange.Checked And chkBoxLubeJob.Checked = False Then
MessageBox.Show("you must select an item")
ElseIf chkBoxOilChange.Checked Or chkBoxLubeJob.Checked = True Then
DoInputValidation()
lblLabor.Text = (dblLubeJob + dblOilChange).ToString("c")
End If
'Create ValidateInputFields function here.
End Sub
Thanks,
Hector B.
