How to useDateTimePicker
in an If else condition because I would like to trap this problem. If a user types his birthday 01/01/2003 the system must prevent it from proceeding.
Even if this code works, it didn't also allow someone to be born on 01/01/1997 to be added.
Code:
ElseIf datepickerBirthday.Value < Date.Now Then
MessageBox.Show("Minors are not allowed, according to the law",
"XYZ Auto Repair System",
MessageBoxButtons.OK,
MessageBoxIcon.Error)`