Results 1 to 3 of 3

Thread: frozen window/controls

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Cookeville, Tn 38501
    Posts
    39
    I've got a VB5 program with a progress bar, displayed counters and a scrollable grid. The trouble is that even though the form has a minimize button, it will not minimize while the application is doing its work (and displaying the progress of that work with its progress bar and counters). Also, it will not allow the user to scroll the grid. How can I make the application minimizable and the grid scrollable while the application is processing data?

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    No problem, In key places in your data processing code insert the line DoEvents. This frees up the code thread so that windows can process its messages, make sure it's inserted into all For Next Loops etc.

    Hope this helps

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Doevents is really helpful, but use it with caution. Ending the program while in a loop causes the program wont close.

    [Edited by kedaman on 03-19-2000 at 04:38 PM]

Posting Permissions

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



Click Here to Expand Forum to Full Width