Results 1 to 4 of 4

Thread: Restoring forms

  1. #1
    TJJ
    Guest

    Restoring forms

    I create alot of vb projects that processes data to SQL7 , Excel, and Access. When processing the data I usually have a progress bar running or use Label captions to keep track of what has been processed. The problem is that when the .exe is running and I
    minimize the form to the systray I can never RESTORE the form
    to Desktop until the code has completed. I would like to check
    the status of the processing periodically. I have not used API yet but it seems API programming is the only answer. Don't I have to capture the handle somehow in order to RESTORE the
    form?? Any code avaliable to show me the way???

    Thanks in Advance

    TJJ

  2. #2
    Megatron
    Guest
    So your App freezes? Try adding the DoEvents statement in your loop.

  3. #3
    TJJ
    Guest

    Thanks

    I forgot all about the DoEvents function. Put it in several places and it cured some of the problem. However, I use the command object that has to go thru a couple million records. Anyway to restore the form to the desktop when then cmd.execute is
    is doing it's thing??

  4. #4
    Megatron
    Guest
    Try placing your showing code at the beginning of your sub routine.

    E.g:
    VB Code:
    1. MyForm.show
    2. '<--cother code here

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