locked
Repaint Method RRS feed

  • Question

  • I am writing a routine in Outlook which steps through the mails.  The routine works fine but I am having some trouble with a useform I am running on top.  It is displaying the progress and counting off each mail cycled through.  I use the repaint method after each update and it seems to run fine then suddenly it stops repainting.  The routine is running fine and when it finishes it once again refreshes to the completed progress.  I therefore assume there are a maximum number of refresh events per second or something.  Could anyone confirm this and tell me if it can be overridden.  Thank you.

    Edit:

    Does not seem to berelated to the repaint at all actually it seems as though after a few seconds in the loop Outlook suspends visual updates presumable assuming a crash.  As I say, it does continue to run and comes out of it but I am curious as to the cause and how to avaid it.

    Friday, September 28, 2012 11:54 AM

All replies

  • Try inserting the command DoEvents immediately after the repaint. Forces the operating system to catchup.

    Regards, OssieMac

    Saturday, September 29, 2012 1:27 AM