G
Guest
I've got an MDI app that contains one child form at a time that takes up all
the display real-estate of the parent form. I've turned off everything that
would normally be visible using the code below so that the child will appear
to be just the body of the main form.
This works as expected with the annoying exception of the titlebar appearing
momentarily when the form is first shown. This happens so fast that you have
to be paying attention to see what is happening, and sometimes the titlebar
doesn't appear at all, though I assume this is just a timing issue since 90%
of the time the titlebar does flash into view.
This was an issue with 1.1 and I was told by Microsoft that it was still an
issue with 2.0, but since I got that answer more than a year ago before 2.0
was released I was hoping it was fixed by now - which apparently it was not -
or that someone had discovered a work-around.
Any help would be greatly appreciated.
this.ControlBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MainMenuStrip = this.mnuMain;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
the display real-estate of the parent form. I've turned off everything that
would normally be visible using the code below so that the child will appear
to be just the body of the main form.
This works as expected with the annoying exception of the titlebar appearing
momentarily when the form is first shown. This happens so fast that you have
to be paying attention to see what is happening, and sometimes the titlebar
doesn't appear at all, though I assume this is just a timing issue since 90%
of the time the titlebar does flash into view.
This was an issue with 1.1 and I was told by Microsoft that it was still an
issue with 2.0, but since I got that answer more than a year ago before 2.0
was released I was hoping it was fixed by now - which apparently it was not -
or that someone had discovered a work-around.
Any help would be greatly appreciated.
this.ControlBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MainMenuStrip = this.mnuMain;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;