Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command button question
Message
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00355959
Message ID:
00356586
Views:
9
Hi Allan --

>>>
I'm new to VB - just starting to learn after using VFP for the last number of years.

Question: Which property controls the color of the text in a command button? VFP has a ForeColor property that handles this.
<<<

As Eric indicated, the standard command button honors the user's choice of colors. There is another option that's easier than mucking with subclassing and drawing your own captions, though! Just use a checkbox control, and set it's Style property to Graphical (1). To make it behave just like a standard command button, use code like this:
Private Sub Check1_Click()
   Check1.Value = vbUnchecked
   ' actual work here...
End Sub
Later... Karl

.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform