You are on page 1of 1

Private Function CheckDate() As Boolean

Try
If dtpFromDate.Value > dtpToDate.Value Then
MsgBox("From Date cannot be greater than To Date. Please change
From Date", MsgBoxStyle.Information, "Wholesaler Processing")
dtpFromDate.Focus()
Return False
Else
Return True
End If
Catch errException As Exception
Throw errException
End Try
End Function

You might also like