Supress MDI child titlebar flashing?

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;
 
G

Guest

On my system at least it's still a problem outside the IDE in both debug and
release builds. Outside the IDE it is less noticable since it happens less
frequently - probably because it executes faster outside of the IDE - but it
does still happen.

When I spoke with Microsoft about the issue in 1.1 they acknowledged it was
a bug and called me back later to confirm that testing revealed it was still
an issue in their current development version of 2.0. I was hoping they had
fixed it in the RTM version of 2.0, but obviously not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top