• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

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?
0
expertfan
Asked:
expertfan
  • 2
  • 2
1 Solution
 
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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now