Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing the Main Application Window
Message
 
À
28/06/2004 03:50:22
Filip Bruman
Kirschberg Holding
Copenhagen, Denmark
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00917128
Message ID:
00918096
Vues:
7
Filip,

>I get a compile error on the line
>
this.MdiParent = App.MainForm;
>Error message is :
>
The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)
As Jason suggested, it sounds like you need to add a reference to the appropriate namespace. There are a few ways to get at this main form reference. If you use the mmAppDesktop class (note the "mm" prefix), you would do it as follows:
OakLeaf.MM.Main.Windows.Forms.mmAppDesktop.MainForm;
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