Page 1 of 1

Foreground Color not Doing Anything

Posted: 22 Aug 2016, 13:19
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.

Paul

Re: Foreground Color not Doing Anything

Posted: 22 Aug 2016, 19:56
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:
http://www.timosoft-software.de/onlineh ... 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.