Is ActiveX EXE standalone

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.
Who is Participating?
Davy070599Connect With a Mentor Commented:
Write the following code in your startup procedure:

If App.StartMode = vbSModeAutomation Then
   ' Code to start invisibly
   ' Code to show main form
End If
iJolly4Author Commented:

New it would be a simple one.  

Thanks Iain
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.