Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ForeColor on a Button...
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
MS SQL Server
Divers
Thread ID:
01025162
Message ID:
01026605
Vues:
13
Ty,

>I have tried to change the forecolor on a MM button subclass and it is not working.
>
>I created a subclass of the base .NET button and I can change the forecolor on that control just fine.
>
>What is the problem? I just need the forecolor to be red on a button...

Try setting the FlatStyle of the button to something other than "System". Unfortunately, in Windows Forms 1.1 you have to set a button's FlatStyle to System so it looks like an XP button when running on Windows XP. This is fixed in Windows Forms 2.0.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform