Private Sub DateTimePicker2_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker2.ValueChanged
If DateTimePicker2.Value < DateTimePicker1.Value Then
MessageBox.Show("DateTimePicker2 value should be always greaterthan datetimepicker1")
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.