Home > Net >  Winfrom form the TopMost attributes
Winfrom form the TopMost attributes

Time:03-06

After open the program, the login window by default with full screen, also full screen after login (similar to web login)
After the login form is a Mdi container (assuming for FormMain), IsMdiContainer attribute to True
After entering system, default to open two Windows (assuming for Form1 and Form2), the two forms of the TopMost attribute set to True, as shown in figure

If you don't set the TopMost attributes, Form1 and Form2 will not display in the main interface
But if you set the TopMost to True, when minimized display program, Form1 and Form2 will continue to display on the desktop, as shown in figure


I tried some solution
Set Form1 and Form2 TopMost to False, and then set them MdiParent FormMain, although there will be no problem, but not drag


Consult everybody, how should solve
The serious problems in the long

CodePudding user response:

Try show (this)

CodePudding user response:

Form1 and Form2 parent form specified as below the form, the form, the Show (Control parentConrol), use the overloading

CodePudding user response:

 
F_TimerDemo FRM=new F_TimerDemo ();
FRM. MdiParent=this;
FRM. The Show ();


FRM. MdiParent=this;
With it, so you New child form can only be inside the MDI form
  •  Tags:  
  • C#
  • Related