Possibility of "Close event" of DataTimePicker

mozaharul

Active Member
Licensed User
Hi,
Previously I had written code in the calendar_close event that would not allow future date selection. Since I redesigned the same for HPiPAQ 214 using DataTimePicker and could not find the DataTimePicker_close event. So how to do the same ? Here is the calendar_close event code :

Sub Calendar3_Close
If calendar3.Value > Now Then
Msgbox("Sorry , its Future Date !")
calendar3.Focus
calendar3.Color=cred
Return
.... ....
.... ....
.... ....
End if


writing same sort thing in DataTimePicker_valuechanged event does not help.

what to do ?

regards,
 

mozaharul

Active Member
Licensed User
Hi agraham,

Please have a look to the project attached. Run the project 5 to 10 times, I found it to behave differently. I can not change the date after the future data has been selected.


regards,
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…