onlyone SwitchToFirst
Return to Introduction  Previous page  Next page
Applies to
acOnlyOne component.  

property SwitchToFirst: Boolean; // default True  

If SwitchToFirst property is True and another copy of the same application is detected, acOnlyOne will switch the tasks to previous program instance.  

You don't need to change value of this property at run-time. acOnlyOne use this property on program startup only.  

See also
CloseFirst and CloseSecond properties;  
OnAlreadyExist event.