Click to See Complete Forum and Search --> : VB5 Question


Raijen
April 10th, 2001, 09:17 AM
I'm working on a program for work that compresses and backup files on the local drive. It runs fine; but it doesn't seem to want to refresh the main window (i.e. to fill up the main progress bar) Auto=Redraw is set to true; and i've got a frmMain.refresh command each time the progress/status bar is updated. I can step through it; and the numbers and values of the bars DO update; but the flonquing screen STILL doesn't refresh. :confused:

Any help would be appreciated.

Raijen
April 10th, 2001, 04:10 PM
NM Fixed It Myself :) Thx Anyhow.

antonye
April 19th, 2001, 04:24 AM
...any pointers as to what your solution was for other users?

My guess was that your procedure was happening so fast that the screen didn't have time to update.

A good trick here is to force the form to refresh using the .Refresh method of the form, rather than the item itself.

You may also find that putting in a DoEvents call may also help - this yields some processing power to other threads working on the machine, like the system process which will redraw the form.