|
-
Jun 5th, 2005, 01:01 AM
#1
Thread Starter
Lively Member
How do I know one application is opening?
Hi everyone
How could my windows service program knows one application is opening or not?. For example if i wanted to know that one person is opening windows media player or any other application in a system where I installed my windows service app. . How can it be done?
PLease help
when in doubt, win the trick
-
Jun 5th, 2005, 07:51 AM
#2
Thread Starter
Lively Member
Re: How do I know one application is opening?
hi
No is there to help me?
pleaseeeeee..
when in doubt, win the trick
-
Jun 5th, 2005, 08:57 PM
#3
Re: How do I know one application is opening?
You can use the Process class to determine what processes are running. I suggest a bit of reading.
-
Jun 5th, 2005, 09:54 PM
#4
Lively Member
Re: How do I know one application is opening?
try this one.
VB Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim pro() As Process = Process.GetProcesses
For Each p As Process In pro
If p.ProcessName = "calc" Then
MessageBox.Show("The calculator was running")
End If
Next
End Sub
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
|