Hi,
Does anyone know how i could override the datechange for a dateTimePicker (DTP) Control. i.e when the user selects a date from the dtp they click a save button and this value is then pushed into a varibale. The user can then make bookings for that date. If the user goes back and chooses to edit that date they click the edit date button which enables the DTP. When the user clicks on a new date i have a msgbox that appears informing the user that if they change the date their bookings will be lost.And if they wish to continue. If they choose yes the date changes to whatever they sleected before the msgbox appeared. However the problem i have is that if they click 'NO' the date is still changed. How do i overide it so that the date does not change to whatever was selected before the msgbox appeared??
Alternatively is there a event that is fired when the user clicks on the arrow of the DTP?? This way i can have the msgbox appear here instead of after the user changes the date.
Any advise would be greatly appreaciated.
thx in advance.
Does anyone know how i could override the datechange for a dateTimePicker (DTP) Control. i.e when the user selects a date from the dtp they click a save button and this value is then pushed into a varibale. The user can then make bookings for that date. If the user goes back and chooses to edit that date they click the edit date button which enables the DTP. When the user clicks on a new date i have a msgbox that appears informing the user that if they change the date their bookings will be lost.And if they wish to continue. If they choose yes the date changes to whatever they sleected before the msgbox appeared. However the problem i have is that if they click 'NO' the date is still changed. How do i overide it so that the date does not change to whatever was selected before the msgbox appeared??
Alternatively is there a event that is fired when the user clicks on the arrow of the DTP?? This way i can have the msgbox appear here instead of after the user changes the date.
Any advise would be greatly appreaciated.
thx in advance.