im a beginner in C sharp. im stuck with the following. i hope someone can get me on the track again.
i want to add a validation for user input such as making sure the year of the yearTextBox is not greater than the current year +2.
private void yearTextBox_Validating(object sender, CancelEventArgs e)
{
}
i think it should be something like this
if (yearTextBox.Text >= DateTime.......
current year + 2
but i cant figure out how to put this.