Form closing behavior

amerfeld

Registered User.
Local time
Today, 08:15
Joined
Aug 17, 2004
Messages
58
Not sure what to call this "phenomenon" so haven't had any luck searching for an answer.

I have a form (form1) that has a close button with code behind it. When the button is clicked, it takes a few seconds for the code to run. When form1 closes, all is well up until: There is another form (form2) that is open behind form1. When form1 closes, part of it is still visible over form2.

Hope this makes sense. Any way to solve?
 
Try doing a "form2.repaint"
or form2.refresh

You may need to add a "DoEvents" to your code (after the repaint or refresh)

Good luck :)
 

Users who are viewing this thread

Back
Top Bottom