Re: Buttons / ForeColor Property




"George H. Slamowitz" <GSlamowitz@xxxxxxx> wrote in message news:6FBF7930-C93E-49B2-B4E5-98DEE6FD514A@xxxxxxxxxxxxxxxx
> I have a button that has text on it ..
>
> The text is in black, and when the button is selected I want to turn the
> text to red.
>
> In MS Access all you had to do is change the forecolor property, but VB 6
> does not seem to have that property that can be set ... is there any way to
> get to that property

The first one is an API method of doing this and the second one is a kludge that works very nicely...

http://vbnet.mvps.org/code/subclass/buttoncolour.htm

http://vbnet.mvps.org/code/intrinsic/buttoncolorcheck.htm

Rick - MVP
.