Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2006

Tip: Looking for answers? Try searching our database.

Supress MDI child titlebar flashing?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Byron - 30 Jun 2006 00:43 GMT
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;
Jared - 30 Jun 2006 03:44 GMT
is not a problem when app is being run outside of IDE.
Byron - 30 Jun 2006 12:31 GMT
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.

> is not a problem when app is being run outside of IDE.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.