Screen refresh?

swift
09-14-2000, 10:46 AM
I have a simple question... how do I get my screen to refresh?

My program calculates for about 5 minutes, and while it is doing that I switch to other programs to do other stuff. Well, when I minimize my other program (like IE or something), the screen space that was taken up by my other program is not refreshed with my VB app's windows. I see the outline of my windows, but the form part inside it still shows the last screen that my other program had.

I also am not able to refresh my MDI form in a similar instance.

Any ideas? I don't want to have to set a timer and refresh the windows programmatically every half a second or something, and the getFocus event hasn't worked for me so far... I'd appreciate any help.

Steve

roger
09-14-2000, 11:23 AM
Hi,
I would try DoEvents and see if it would make any difference.
I never tried it. But it is worth the try.
I'm sure if I'm wrong, someone more experienced than me, in this forum, would correct me.
Let me know how it went.

Good Luck
Roger

"Great Ideas need Landing Gears as well as Wings"

BillSoo
09-14-2000, 12:35 PM
Another possibility would be to set the form.autoredraw property.

"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum