This is a migrated thread and some comments may be shown as answers.

How to make single instance application?

3 Answers 301 Views
Form
This is a migrated thread and some comments may be shown as answers.
Laug
Top achievements
Rank 1
Laug asked on 03 Jan 2017, 04:36 PM
Greetings. I've created Telerik VB Windows Forms Application and have checked the "Make single instance application" check box in the Visual Studio Project Designer. But it doesn't have any effect. When called with command line arguments, application always starts new instance, despite that there is another instance, already running. And the event My.Application.StartupNextInstance is never fired. Is it possible to fix it?

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 05 Jan 2017, 02:45 PM
Hi ,

I have tested this locally and it is working fine on my side (see attached video).

Could you please specify which version of the suite you are using? Have you tested this with a standard project type? 

I am looking forward to your reply.
 
Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Laug
Top achievements
Rank 1
answered on 06 Jan 2017, 10:06 AM
The version of the suite is 2016.2.503.40 and I use VS 2015 update 3. I tried to create usual winforms project and all work as it should. However, Telerik winform is always running several instances. I've attached screenshot and project at WFA2Receiver.zip
0
Accepted
Dimitar
Telerik team
answered on 09 Jan 2017, 10:10 AM
Hi ,

Thanks for the sample application.

In this case, the Main function in the App.vb file overrides the setting used in the Application.myapp file. This is fixed in the latest release of our suite. In your case, you should delete the App.vb file and select the startup form in the project properties. 

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Form
Asked by
Laug
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Laug
Top achievements
Rank 1
Share this question
or