onlyone CloseSecond property
Return to Introduction  Previous page  Next page
Applies to
acOnlyOne component.  

property CloseSecond: Boolean; // default True  

The CloseSecond property controls whether the second (and greater) instance of application should be closed if the application already running. However, if you wish to allow to run more than one instance of your application — set CloseSecond to False. Otherwise, if you wish to kill all superfluous instances — leave it True.  

See also
CloseFirst and SwitchToPrevious properties;  
OnAlreadyExist event.