|
-
Jun 8th, 2012, 02:53 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Check if process is running.
Hi,
I have a label on my form called label1.text, I was wondering if it would be possible to display a text if there are more than 1 process running? The process I would like to check is the current exe (the windows application I'm creating)
Please mark threads as resolved once the problem has been solved.
I apprecaite all your help/advice given 
-
Jun 8th, 2012, 02:57 PM
#2
Frenzied Member
Re: Check if process is running.
System.Diagnostics.Process.GetProcessesByName(name As String)
Justin
-
Jun 8th, 2012, 03:53 PM
#3
Thread Starter
Fanatic Member
Re: Check if process is running.
Hi Monk
I was thinking the following
Code:
If System.Diagnostics.Process.GetProcessesByName(name As String) > 1 then
Label1.Text("App is running")
Please mark threads as resolved once the problem has been solved.
I apprecaite all your help/advice given 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|