Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling the child form
Message
De
01/05/2007 19:17:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Controlling the child form
Divers
Thread ID:
01221670
Message ID:
01221670
Vues:
66
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform