Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1725
Flashing window during resize events
posted

I'm having a problem with a Windows form "flashing" during resize events.

My applicaiton has a Mdi tab control and within the open tab I have a window with a WinTab control. At the top of the window with the WinTab I have some colored boxes (I'll insert a picture) that is docked to the top.

When main application window what I get is that the window within the Mdi tab is first sized and rendered over the top of the inside tabs and then the inside tab is redrawn "properly". This causes the window to flash in a very bad way.

I've been trying to figure out why and how to fix it. I've tried hooking the various resize events but they seem to be to late. I was also trying to hook the ResizeBegin and ResizeEnd events but those are not fired for some reason.

I've attached before and during "screens" below for clarification.

Any thoughts or advice?