DO not exactly understand.
If I want just single instance I use the app.PrevInstance.
If you need to monitor the number of instances use,
Form_Load: GetSetting ...
increase the obtained value by one
SaveSetting
Form_unload
GetSetting
decrease the obtained value by one
SaveSetting
webdesign-tvorba webu