Results 1 to 3 of 3

Thread: How can I let my app know that an external program has ended? *[RESOLVED]*

  1. #1

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435

    Thumbs up How can I let my app know that an external program has ended? *[RESOLVED]*

    Ok, this is what I want to do:[list=1][*]Have a bunch of files on disk and have the user select which file they want to view in a RichTextbox.[*]Have the user choose a menu item and be able to launch WordPad and automatically load the displayed text from the RichTextBox into WordPad ready for editing.[*]When the user has saved and exited WordPad, I want my app to realise this and reload the newly save text back into the RichTextBox.[/list=1] I can do steps 1 and 2, but not 3. How do I get my app to know when WordPad has exited so I can load the text back?

    Thanks.
    Last edited by RealNickyDude; Feb 10th, 2003 at 05:41 AM.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    If you are using Shell function to launch wordpad then it has an option to wait (or not wait) till the program ends. If starting it as a new process then you can check for the existence of the procees.

  3. #3

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Thanks Lunatic3, didn't realise there was a .WaitForExit() for a Process.Start()

    And I spent ages trying to find a way!!
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

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