Solved

Is ActiveX EXE standalone

Posted on 2000-05-10
2
376 Views
Last Modified: 2008-03-04
I have created an ActiveX Exe.  How do I tell if someone has launched it standAlone or via creating an instance of it from another program.
0
Comment
Question by:iJolly4
2 Comments
 
LVL 2

Accepted Solution

by:
Davy070599 earned 15 total points
ID: 2797581
Write the following code in your startup procedure:

If App.StartMode = vbSModeAutomation Then
   ' Code to start invisibly
Else
   ' Code to show main form
End If
0
 

Author Comment

by:iJolly4
ID: 2799323
Excellent.....

New it would be a simple one.  

Thanks Iain
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
consolidate or create a new vba code for performing tasks 5 62
Copy a row 12 57
Add a task in Outlook from access 11 35
Modifying Conditional Format from VBA code 3 48
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

932 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now