r/visualbasic • • 2d ago

Tips & Tricks VB6 custom colours

I just got AI to modify VB6.EXE and VBA6.DLL to load a custom color pallette at startup and replace the built in colours. Finally have custom colours in the editor!

Just sharing my morning fun, not sure about distribution of these mods tho. I guess it wouldn't be usable if you didn't already have VB6 installed and licenced.

10 Upvotes

6 comments sorted by

2

u/Mayayana 2d ago

I've been doing that for years by just using a color picker and reversing the hex value, typing that directly into the properties for objects. It may be a bit easier to have it integrated, but either way it's fairly simple.

3

u/Fergus653 2d ago

I mean the editor colours

1

u/Mayayana 2d ago

You mean the window frames that normally display with "button face" or "3-D object" system color? Interesting, though I've never been curious to change that.

1

u/Fergus653 1d ago

No, the text colours that you select in the settings. Cos I wanted my code to look more like the visual studio dark theme. This also fixed saving the bookmark indicator colour.

Although you can change the system colour settings if you want a different button face etc, or used to be able to, on win 10, by editing a theme file. Haven't tried on win 11. It was never easy to make a dark mode for win forms apps tho, there's always a menu or some other element you can't change.

1

u/Fergus653 17h ago

I put VB6ColorSwatch on github, it's an editor for a color palette file. With some notes on the mod.

3

u/immortalx74 2d ago

You don't know how many people would be interested. VB6 community is surprisingly still alive