Solved

Launch only one instance of application

Posted on 2006-10-28
5
183 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Praveen Kumar
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:Praveen Kumar
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sending a email via excel using vba 6 118
Problem to With line 4 86
MS Access 03, TransferText, decimal places 8 92
VBA Replace Function - What am I missing? 3 51
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

734 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