I'm creating my own DateTimePicker class inheriting the Windows form DateTimePicker. I would like the events I have in the class to respond differently depending on a property of the form which can be changed during the life of the form. How do I get this to work? I see that I can use the Find Form to get a reference to the form containing the control and maybe get the value of the form property that way. Would this work and would I have to do that every time an event is fired or is there another way?
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.