PDA

Click to See Complete Forum and Search --> : ActiveX exe


kjmcsd
Sep 18th, 2002, 09:56 AM
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.

kjmcsd
Sep 18th, 2002, 10:17 AM
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