Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Continue when program is closed

Continue when program is closed

Scheduled Pinned Locked Moved Visual Basic
questioncsharpcomhelp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FeRtoll
    wrote on last edited by
    #1

    How can i check if program have closed. I am doing a install list a folder containing programs installations and one list file that is opened in my program. so if you start my program it starts installation file from list, but then i need to start another installation from the list of installations when first installation is done! Is that possible please help... Do i need to set up timer that check for window or process? Can it be done with background worker? How? :confused: Thanks :^)

    FeRtoll Software.net ------------ E-Mail me WebPage

    T 1 Reply Last reply
    0
    • F FeRtoll

      How can i check if program have closed. I am doing a install list a folder containing programs installations and one list file that is opened in my program. so if you start my program it starts installation file from list, but then i need to start another installation from the list of installations when first installation is done! Is that possible please help... Do i need to set up timer that check for window or process? Can it be done with background worker? How? :confused: Thanks :^)

      FeRtoll Software.net ------------ E-Mail me WebPage

      T Offline
      T Offline
      Tom Deketelaere
      wrote on last edited by
      #2

      how about the formclosed or formclosing event could that do what you want??

      If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.

      F 1 Reply Last reply
      0
      • T Tom Deketelaere

        how about the formclosed or formclosing event could that do what you want??

        If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.

        F Offline
        F Offline
        FeRtoll
        wrote on last edited by
        #3

        no form close i need action when process is closed!!! i run an other exe file and when it does all the actions and closes i need my program to continue!!! Thanks :sigh:

        FeRtoll Software.net ------------ E-Mail me WebPage

        T 1 Reply Last reply
        0
        • F FeRtoll

          no form close i need action when process is closed!!! i run an other exe file and when it does all the actions and closes i need my program to continue!!! Thanks :sigh:

          FeRtoll Software.net ------------ E-Mail me WebPage

          T Offline
          T Offline
          Tom Deketelaere
          wrote on last edited by
          #4

          I don't directly know how to do this but you could check the taskmanager for the process if its there : do nothing if its no longer there : do you'r code I'v never tryed it like this so don't know if it's possible or how to do it but to get you on you'r way: http://www.codeguru.com/cpp/cpp/cpp_managed/threads/article.php/c4875/[^] http://forums.devx.com/showthread.php?t=142552[^] http://www.codeproject.com/csharp/processescpuusage.asp[^] http://www.codeproject.com/csharp/wm_copydata_use.asp[^] http://www.codeproject.com/dotnet/globalcache.asp[^]

          If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.

          F 1 Reply Last reply
          0
          • T Tom Deketelaere

            I don't directly know how to do this but you could check the taskmanager for the process if its there : do nothing if its no longer there : do you'r code I'v never tryed it like this so don't know if it's possible or how to do it but to get you on you'r way: http://www.codeguru.com/cpp/cpp/cpp_managed/threads/article.php/c4875/[^] http://forums.devx.com/showthread.php?t=142552[^] http://www.codeproject.com/csharp/processescpuusage.asp[^] http://www.codeproject.com/csharp/wm_copydata_use.asp[^] http://www.codeproject.com/dotnet/globalcache.asp[^]

            If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.

            F Offline
            F Offline
            FeRtoll
            wrote on last edited by
            #5

            thanks man but i found this one and works good!!! Public Sub Ruun(ByVal ProcessPath As String) Dim objProcess As System.Diagnostics.Process Try objProcess = New System.Diagnostics.Process() objProcess.StartInfo.FileName = ProcessPath objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal objProcess.Start() 'Wait until the process passes back an exit code objProcess.WaitForExit() 'Free resources associated with this process objProcess.Close() Catch MessageBox.Show("Could not start process " & ProcessPath, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1) End Try End Sub :doh: anyway thanks!!! :-D

            FeRtoll Software.net ------------ E-Mail me WebPage

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups