VB5 Question
Results 1 to 3 of 3

Thread: VB5 Question

  1. #1
    Registered User
    Join Date
    Oct 2000
    Location
    Markham, Ontario, Canada
    Posts
    62

    Question VB5 Question

    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.

    Any help would be appreciated.

  2. #2
    Registered User
    Join Date
    Oct 2000
    Location
    Markham, Ontario, Canada
    Posts
    62

    Post

    NM Fixed It Myself Thx Anyhow.

  3. #3
    Registered User
    Join Date
    Jan 1999
    Location
    London, Great Britain
    Posts
    300

    Question

    ...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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •