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?
expertfanAsked:
Who is Participating?
 
Praveen KumarArchitectCommented:
hi,
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
Else
   'Application is not runnnig
End If
0
 
expertfanAuthor Commented:
if app.previnstance =true, then how can i open 'new child form' in the previnstance?
0
 
Praveen KumarArchitectCommented:
0
 
expertfanAuthor Commented:
thanks quarkphoton! this works great.
0
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.