Results 1 to 4 of 4

Thread: How do I know one application is opening?

  1. #1

    Thread Starter
    Lively Member afterMoon's Avatar
    Join Date
    Oct 2002
    Location
    cochin
    Posts
    117

    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

  2. #2

    Thread Starter
    Lively Member afterMoon's Avatar
    Join Date
    Oct 2002
    Location
    cochin
    Posts
    117

    Re: How do I know one application is opening?

    hi
    No is there to help me?
    pleaseeeeee..
    when in doubt, win the trick

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.

  4. #4
    Lively Member heuyen's Avatar
    Join Date
    Jan 2005
    Posts
    64

    Re: How do I know one application is opening?

    try this one.
    VB Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         Dim pro() As Process = Process.GetProcesses
    3.         For Each p As Process In pro
    4.             If p.ProcessName = "calc" Then
    5.                 MessageBox.Show("The calculator was running")
    6.             End If
    7.         Next
    8.     End Sub
    you can't bind me.

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