I don't usually set any colours on the forms I create so they end up looking drab and unimaginative. I decided lets create preset colour themes that could be automatically applied to any form. You could then call one of these presets in the Form Initialize event. Job Done.
Why stop there? You could place a button on the form so that if the end user didn't like the colours in your default choice of theme, they could change the forms theme at run-time.
Attached is where I'm up to.
I'm looking for some help on any of the following:
- I need some more colour themes! So let your imagination run wild! I don't mind how "loud" the theme is that you suggest - the only requirement is a good set of contrast so that the fore-color is easy to read against the back-colour (so no pale green on pale yellow background!) A theme name for each colour theme provided would be nice but is not essential.
- I need some technical help #1 - It auto applies the colour based on the control name prefix. Not all coders use naming conventions so ideally the Select Case should use the Controls Type instead to be more reliable. But how?! (UPDATE: This has been solved by millz)
- I need some technical help #2 - The color theme doesn't work well for all controls so appreciate code to fix any of these
Bookmarks