Results 1 to 4 of 4

Thread: open form after ....how?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    131

    open form after ....how?

    Hello


    if i have a command button to with a shell code to run command prompt (dos) then show another form

    my questions is how can i delay the second form showing until the dos window closed or finished its run

    thanks

  2. #2
    Addicted Member
    Join Date
    Dec 2005
    Posts
    163

    Re: open form after ....how?

    you could try to put an api in a timer and when the caption isn't shown anymore have it open the other form... just an idea
    If this post has helped you please rate it by clicking the scales to the left of this post!

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: open form after ....how?

    You need to use the CreateProcess and the WaitForSingleObject API functions. Do a forum search for ShellAndWait to find a bunch of examples.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    131

    Re: open form after ....how?

    thanks both
    i will try api
    an searching fourms


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