Results 1 to 3 of 3

Thread: [RESOLVED] Check if process is running.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Location
    U.K
    Posts
    752

    Resolved [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

  2. #2
    Frenzied Member
    Join Date
    Feb 2008
    Location
    Texas
    Posts
    1,288

    Re: Check if process is running.

    System.Diagnostics.Process.GetProcessesByName(name As String)

    Justin
    You down with OOP? Yeah you know me!
    MCAD and MCMICKEYMOUSE (vb.net)

    ----

    If it even kinda helps... rate it : )

    Edit a Multi-page .tif file and save.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Location
    U.K
    Posts
    752

    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
  •  



Click Here to Expand Forum to Full Width