application should be opened only once...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • softwaregeek
    New Member
    • Mar 2007
    • 27

    #1

    application should be opened only once...

    hi all,
    i have design a small project in vb 6 and I have made its EXE also.Now what i want is once i have started my exe than if i try to open it again than it shouldnt get opened i.e. only one instance is allowed to run at a time.

    Thanx...
  • vijaydiwakar
    Contributor
    • Feb 2007
    • 579

    #2
    Originally posted by softwaregeek
    hi all,
    i have design a small project in vb 6 and I have made its EXE also.Now what i want is once i have started my exe than if i try to open it again than it shouldnt get opened i.e. only one instance is allowed to run at a time.

    Thanx...
    use registry for that
    whenevr the application starts it will check the registry first if its alredy made then it will stops its execution
    if not then update registry
    u may try this with databse also

    Comment

    • softwaregeek
      New Member
      • Mar 2007
      • 27

      #3
      Originally posted by vijaydiwakar
      use registry for that
      whenevr the application starts it will check the registry first if its alredy made then it will stops its execution
      if not then update registry
      u may try this with databse also
      ya diwakar i thought of database but feel that it wont be good idea
      can u plz tel me how to access registry thru vb

      Comment

      Working...