Solved

Launch only one instance of application

Posted on 2006-10-28
5
180 Views
Last Modified: 2010-04-30
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
Comment
Question by:expertfan
  • 2
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Mamtha1982
ID: 17828103
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
 

Author Comment

by:expertfan
ID: 17828109
if app.previnstance =true, then how can i open 'new child form' in the previnstance?
0
 
LVL 12

Expert Comment

by:Mamtha1982
ID: 17828125
0
 
LVL 2

Accepted Solution

by:
quarkphoton earned 500 total points
ID: 17831891
0
 

Author Comment

by:expertfan
ID: 17878658
thanks quarkphoton! this works great.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question