Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win Form MainForm Buttons show through to new forms?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00940015
Message ID:
00940291
Views:
14
Stephen,

>I was asked to put BIG buttons on the MainForm to help users navigate to the 4 main pages of this tiny app.
>
>When they click on the button or use the menu, I get those buttons ontop of my form called via:
>mmAppDesktop.FormMgr.Show(new PTOApps(), this);
>
>Any idea on what I need to change?

Unfortunately, this is standard Windows Forms behavior. Any controls placed directly on an MDI parent form are first in the Z-Order before any child forms and are always displayed in front of the forms at run time. That's why on the MM .NET Sample application's main form there is code that hides the image when a child form is launched and makes it visible when no forms are displayed.

If you want to do the same thing with your buttons, you can override your application's MainForm ShowDesktopImage() and HideDesktopImage() methods as described in the MM .NET Dev Guide topic "Adding an Image to the Main Application Window".

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