Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling the child form
Message
From
01/05/2007 19:17:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Controlling the child form
Miscellaneous
Thread ID:
01221670
Message ID:
01221670
Views:
64
Hi all,

I have a problem trying to control the position of child forms within the mdi main form. (These forms are not sizeable or moveable) I am using a singleton pattern on this paticular form but everytime I show it with the form manager, it puts in a little lower and a little to the right within the midi. I am not able to just set it's state property to maximize because I have a toolstrip accross the mid main form with buttons on it. I need all my child forms to align just under that. The main form is small because this application runs on a 10" monitor within a truck.

I didn't try it however I suspect the form manager does this, and so setting the location property each time I show it wouldn't work for me. It would seem my options would be to override the form manager and it's show method or just not use it. I like the features I get with using it however. (this app is not localized).

Any ideas on how to defeat this? Here is the code I am using to show the form

frmMonitor monitorForm = frmMonitor.FormInstance;
monitorForm.MDIParent = this;
mmAppBase.FormMgr.Show(monitorForm, this);

Thanks for your thoughts
Tim
(MM.Net version 2.4)
Timothy Bryan
Next
Reply
Map
View

Click here to load this message in the networking platform