You can set the text color and the background color of almost anything using the API functions SetTextColor and SetBkColor. For the control in question you will have to get the Device Context first...use GetDC to get it...I'm assuming you can get a handle to the datetimepicker to use with GetDC...I would also like to say that the datetimepicker control has some really lame limitations such as the forecolor and backcolor being so hard to change for the actual text area and the fact that it doesn't really accept null values except via that screwy checkbox feature...an as for binding to empty or null dates...forget about it...MS should have their people do a little work on that thing.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.