Two Q's re Color objects on a CF.Net 2.0 form.... [modified]
-
First question: how can I set the background of a DateTimePicker control to a particular colour? Since there's no BackColor property I guess the only option is to create a custom control and override Paint or OnPaintBackground right? Anyone got a better (simpler!) idea on how I can do this? Second question: I have a config file which I load up at app initializtion which defines the colour names for things like form background, default text color, button color, etc, etc. I want to convert the names of those colors (eg: AliceBlue) into a Color object but I'm not sure how to do that... it must be simple but nothing I've tried works. I think you can do this in normal winforms but not in CF.Net AFAICS. Cheers, Mike -- modified at 3:29 Friday 28th July, 2006