Foreground Color not Doing Anything

The place for threads about TimoSoft ButtonControls.
Post Reply
Posts: 3
Joined: 08 Jun 2013, 23:24

Foreground Color not Doing Anything

Post by pgrimmer »

I am running VB6 on Windows 10 (in Administrator mode) and I am not using a manifest.

When I use a CommandButton and I set the foreground color to something other than the default black, nothing happens.

Am I doing something wrong or do I need to do something else to make it work? Thanks.

User avatar
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: Unterföhring

Re: Foreground Color not Doing Anything

Post by TiKu »

The native button control does not seem to support a custom forecolor. Therefore the ForeColor property affects owner-drawn button controls only. This is also stated in the online help: ... 9e9b1a72f5

If you know how to achieve a custom forecolor using sub-classing, please let me know. I never managed to make it work, at least not in a way that has no drawbacks.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Post Reply