PC Review


Reply
Thread Tools Rate Thread

Flickering on MDI-child windows

 
 
Diego
Guest
Posts: n/a
 
      9th Dec 2003
Hello,

In the current app that I've been working on, I am
getting a flickering at loading time on busy [lots of
controls grouped by using a TabControl] MDI child
windows. This flickering doesn't happen for non-MDI [but
just owned] windows. In other words:

assigning

form.MdiParent = parent;

causes a flickering while the form is being painted for
the first time; whereas:

form.Owner = owner; does not.

Making a more detailed research [by looking at the IL on
System.Windows.Forms] I could tell that the handle for
the child window is being recreated in the
Form.set_MdiParent() method and it seems to me that it is
causing this flickering.

I've tried turning my window into a MDI child one without
using that MdiParent property through direct WinAPI calls
with success [it gets rid of the flickering] but that
breaks .NET's rules and other things start getting messed
up [since a .NET's MDI container caches its children, it
doesn't realize that there is a new MDI child window; and
unfortunately it doesn't expose this cache to its
hierarchy - it can only be seen through IL].

Has anybody experienced this problem? Does Anyone know
about any workaround?

Thank you very much in advance for your reply,

Diego
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
flickering pointer, flickering hourglass toh seow Mei Microsoft Word Document Management 0 9th Feb 2009 06:40 PM
flickering pointer, flickering hourglass toh seow Mei Microsoft Word Document Management 0 9th Feb 2009 06:38 PM
FLICKERING...(fore ground font color with flickering).. =?Utf-8?B?RWRkeSBTdGFu?= Microsoft Excel Misc 5 23rd Mar 2006 07:20 PM
GDS Child Menu ( a child proof shell replacement for windows ? ) *ProteanThread* Freeware 0 18th May 2004 05:19 PM
docking windows flickering Robert Batt Microsoft Dot NET Framework Forms 1 15th Oct 2003 03:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 PM.