Does anyone know how I can change the fontcolor on a commandbutton ? I remember I had a piece of code for it but I seem to have lost that.
Printable View
Does anyone know how I can change the fontcolor on a commandbutton ? I remember I had a piece of code for it but I seem to have lost that.
use a checkbox with style set to graphical and value = 0 in the click:
Private Sub Check1_Click()
Check1.Value = 0'uncheck it
End Sub
Mark,
are you sure your are replying to this question ?
YES!
Try it!
you can then set the font colour
Thanks Mark,
I was a bit puzzled by the checkbox, but I tried it and it works.
Of course, you can do it with a regular button, but it requires subclassing. But there is a better solution you can use. If you add Microsoft Forms 2.0 OCX then you would have a button there which allows you to change the forecolor.
Or you could create a graphic with the text you want, and set style to graphical and picture to this graphic.
How did you ever find that out Mark?
Or you can use Sheridan Threedee controls.
By the way. I also found out about the CheckBox thing before. I found that out when i was playing around with the properties of different controls.
Nitro
I read it on a well known VB forum (this one!)
I just tried searching for the original thread but I couldn't find it.