I have made a custom class by inheriting a DateTimePicker and made some methods that allow it to be blank/null.
If the control is blank and a user clicks on it, it populates with the current date. It also raises the ValueChanged
event.
If the control is populated and a user presses delete, it clears and sets its value to null, but the ValueChanged
event doesn't trigger.
In the control's OnKeyDown
method, I would like to include some code that raises the ValueChanged
event, but there doesn't seem to be a way to do that.
Do I need to override the base class event? Is there an applicable example?