Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Backcolor
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
00912674
Message ID:
00912780
Views:
14
Shawn,

>I am stumped on this one, like many that i have been stumped on.
>
>I am trying to set the MainForm.cs backcolor to white, it is gray from MM.
>I have added this to the code and the backcolor is still charcoal gray.
>
>Any help would be appreciated.
>
>this.BackColor = System.Drawing.Color.White;
>
One WOULD think that this would do it for you, but it doesn't...when you set a .NET Windows Form IsMdiContainer to true, it picks up background color from your Windows settings. To change the color, you need to change the BackgroundImage property to a bitmap that contains the color you want. For an example of this, check out the MM .NET sample application. The BackgroundImage property is set to "White.bmp".

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
Next
Reply
Map
View

Click here to load this message in the networking platform