Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ForeColor on a Button...
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
MS SQL Server
Miscellaneous
Thread ID:
01025162
Message ID:
01026605
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform