How to make single instance application?

4 posts, 1 answers
  1. Laug
    Laug avatar
    2 posts
    Member since:
    Jan 2017

    Posted 03 Jan Link to this post

    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?
  2. Dimitar
    Admin
    Dimitar avatar
    1871 posts

    Posted 05 Jan Link to this post

    Hi Laug,

    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.
  3. Laug
    Laug avatar
    2 posts
    Member since:
    Jan 2017

    Posted 06 Jan in reply to Dimitar Link to this post

    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
  4. Answer
    Dimitar
    Admin
    Dimitar avatar
    1871 posts

    Posted 09 Jan Link to this post

    Hi Laug,

    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.
Back to Top