Hello all,
I'm a beginning VB programmer. I'm working on a program for class. How do you change the font color of a command button?
thanks,
Howie
Printable View
Hello all,
I'm a beginning VB programmer. I'm working on a program for class. How do you change the font color of a command button?
thanks,
Howie
The regular command button does not have a forecolor property. You can use the command button that is stored in Sheridan Controls or just add a checkbox and change it's sytle to Graphical...Then it will look like a command button and have a forecolor property.
The graphical checkbox is different from a command button in that it will remain "depressed" when clicked.
use a timer with an intervelt of 10 and set the checkbox's check property to vbUnchecked.
An easier method is to change the state when the mouse is released.
Code:Private Sub Check1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Check1.Value = Unchecked
End Sub
Run your app, hit print screen key load paint and past it in, now get the bucket fill and select your desired colour, zoom in and staring filling each letter on the caption :D
Sorry just being silly :)