By Greg McGuffey - 7/25/2008
When implementing a required fields marker, I have it set the back color to indicate to the user that the field is required. This does not work with the DateTimePicker. While it does have a BackColor, it does nothing.
I've found a link with one way to handle this. I could, of course just subclass the DateTimePicker to do this. However, since others might need the same functionality, I thought I'd throw it out as a possible framework enhancement. Here is the link:
http://www.tek-tips.com/faqs.cfm?fid=5566
This one has just the relevant code, in the last post:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=252920&SiteID=1
Thanks!
|
|