Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing the Main Application Window
Message
 
To
28/06/2004 03:50:22
Filip Bruman
Kirschberg Holding
Copenhagen, Denmark
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00917128
Message ID:
00918096
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform