Look for this component on the internet:



TCiaOnlyOne:

   Drop this component on the main form of your project. Check 
eventually the
   creation order that this code gets first executed.

   If you leave the Unique property empty, then it is possible to 
execute the
   program from out different directories (I needed this feature). If 
you put
   an unique string in it, then only one instance of the program can run.

   When an instance of the program is already running it will be set to
   foreground and this instance will stop, without showing a button or so.

   Any comments, sugestions are welcome at: [EMAIL PROTECTED]
   See also http://www.mestdagh.biz

   Version information:

   1.01 7 jan 2002
      - addes property AlreadyRunning. It can be used in the application if
        some cleanupcode is done, wich is normally not nececary if the 
program
        is already running.

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to