Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Program Is Runing?

Program Is Runing?

Scheduled Pinned Locked Moved Visual Basic
question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mogtabam
    wrote on last edited by
    #1

    Hi All I Want Know My Program Is Runing. If My Prog Is Runing Do'n Run Again tanks All

    N D L 3 Replies Last reply
    0
    • M Mogtabam

      Hi All I Want Know My Program Is Runing. If My Prog Is Runing Do'n Run Again tanks All

      N Offline
      N Offline
      Nilesh Hapse
      wrote on last edited by
      #2

      If (UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0) = True Then MessageBox.Show("Application is already running") End If

      "Legacy code" often differs from its suggested alternative by actually working and scaling. —Bjarne Stroustrup

      1 Reply Last reply
      0
      • M Mogtabam

        Hi All I Want Know My Program Is Runing. If My Prog Is Runing Do'n Run Again tanks All

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Google for "VB.NET Single Instance" for other ideas on how to do this that may better fit your needs.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        1 Reply Last reply
        0
        • M Mogtabam

          Hi All I Want Know My Program Is Runing. If My Prog Is Runing Do'n Run Again tanks All

          L Offline
          L Offline
          LloydA111
          wrote on last edited by
          #4

          Hiya, Well if you are using VB.NET then it is quite simple to only have one instance of your application running by first going to your application properties and then under the application tab, check the checkbox that says: "Make single instance application". LLoyd

          Lloyd J. Atkinson "Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein The most annoying thing about Microsoft is its obsession with change.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups