Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inherited forms
Message
 
À
06/09/2006 15:01:27
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
01151465
Message ID:
01151561
Vues:
30
Darrell,

>I am inheriting the mmMainAppForm. How do I change the backcolor of the form? No mater what I do, it seems to go to a color called AppWorkSpace.

This is one of those Windows Forms "points of interest" <g>. I remember messing with this for quite a while when .NET 1.0 was first out...I thought...certainly, it's me <bg>.

ANYWAY, in order to change the background color of an MDI parent form, you have to set its BackgroundImage property to an image of the desired color...not intuitively obvious! For example, you can create a .bmp or .gif file that is pure white if you want a solid white background. Note that the color will not be changed at design time, but it will render correctly at run time.

Best 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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform