Question how do i change text if process is running

ahamelink

New member
Joined
May 27, 2009
Messages
1
Programming Experience
Beginner
Hello,
well, I must say I am a very beginner but want to get better, that is why I joined this forum.
Anyway, I made a form with a button that opens a new form and a hidden cmd window (it closes it self automaticly).
on the new form I have a label that says if "the program is running". I want that label to change to "Done!" when the process does not exist anymore.
Thank you very much in advance

Adrian
 
By this:
I want that label to change to "Done!" when the process does not exist anymore.

do you mean -- When the second form (Form2) opens I start a process that runs the hidden command window. When the hidden command window is finished, a label on Form2 is updated to show that it has finished processing.

if so then you should check into the BackgroundWorker
BackgroundWorker Class (System.ComponentModel)

-or-

How to: Implement a Form That Uses a Background Operation
 
Back
Top