Is there anyway to determine whether an activex exe was double-clicked or instanced by a CreateObject call?
If I choose Sub Main for startup and have a form.show in it I want to get around that.
Printable View
Is there anyway to determine whether an activex exe was double-clicked or instanced by a CreateObject call?
If I choose Sub Main for startup and have a form.show in it I want to get around that.
I found it. You just have to put this code in sub main:
Sub Main()
If App.Startmode = 0 Then
Form1.show
End if
End sub