Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command button question
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00355959
Message ID:
00356774
Vues:
18
That's a tip that would make McGyver proud! :)


>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
>
>.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform