Launch only one instance of application

i have associated ".ctr" file with our inhouse application. when user doubleclicks the ".ctr" file our application is launched.

now if the application is already open, instead of launching a new instance, i just want to open the ".ctr" file as a 'child-window' within the already running application, how can i do this?
Who is Participating?
Praveen KumarArchitectCommented:
in the form load event check this application has previous instance or not

If App.PrevIntance Then
    'Application is already running, so open it in a child form
   'Application is not runnnig
End If
expertfanAuthor Commented:
if app.previnstance =true, then how can i open 'new child form' in the previnstance?
Praveen KumarArchitectCommented:
expertfanAuthor Commented:
thanks quarkphoton! this works great.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.