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. Launching Application/Program Once

Launching Application/Program Once

Scheduled Pinned Locked Moved Visual Basic
beta-testinghelptutorialquestioncode-review
4 Posts 3 Posters 1 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.
  • D Offline
    D Offline
    Desmond
    wrote on last edited by
    #1

    May I know how to restrict user by launching the application only once? When the application has been launched and not closed yet, some notification or feedback to user when he/she attempt to launch the application again. Please help. thanx in advance.

    R 1 Reply Last reply
    0
    • D Desmond

      May I know how to restrict user by launching the application only once? When the application has been launched and not closed yet, some notification or feedback to user when he/she attempt to launch the application again. Please help. thanx in advance.

      R Offline
      R Offline
      Roger Stewart
      wrote on last edited by
      #2

      In VB6 you can add something simple like this to your load event: If App.PrevInstance = True Then MsgBox "Detected previous instance. Exiting." End End If Roger Stewart "I Owe, I Owe, it's off to work I go..."

      D 1 Reply Last reply
      0
      • R Roger Stewart

        In VB6 you can add something simple like this to your load event: If App.PrevInstance = True Then MsgBox "Detected previous instance. Exiting." End End If Roger Stewart "I Owe, I Owe, it's off to work I go..."

        D Offline
        D Offline
        Desmond
        wrote on last edited by
        #3

        Thank a lot. But how about VB .Net?

        Richard DeemingR 1 Reply Last reply
        0
        • D Desmond

          Thank a lot. But how about VB .Net?

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          Look at http://msdn.microsoft.com/library/en-us/dnwinforms/html/reaworapps1.asp[^]


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          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