We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MDI window has problems redrawing

Thread ID:





2253 Dec 23,2002 10:30 PM UTC Dec 24,2002 03:47 PM UTC WinForms 1
Tags: Tools
Tom Le Blanc
Asked On December 23, 2002 10:30 PM UTC

I have a MDI form and a child window, and I am using the XPmenus (barmanager, baritems, etc.). Has anyone had the following problem: I open a modal form to make a selection that will appear in the MDI parent form. Once the selection is made the modal form closes but instead of the MDI parent form receiving focus any open application behind it gets the focus but the MDI parent remains at the top but with a hole down to the now active window where the modal form once was on the screen. The kicker is that this only occurs when the MDI child form is maximized in the parent. If it is minimized, or just within the parent this redraw/focus problem does not occur. Although there is a slight flicker of that blank-space, but it's not nearly as bad. Attached is a word doc in a zip file with two screen shots of what I'm encountering. Thanks, Tom

Tom Le Blanc
Replied On December 24, 2002 03:47 PM UTC

I found a work-around on Google groups. It appears that it's a Microsoft problem (so I should have put this in the Windows Forms forum): "...delay the close using BeginInvoke. This essentially delays the call to Close until the current windows messages are done being processed. Private Sub ListBox1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.DoubleClick BeginInvoke(New MethodInvoker(AddressOf Close)) End Sub ..." T


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon