PDA

Click to See Complete Forum and Search --> : Invisible Executable...


benski
Jan 13th, 2000, 07:07 PM
My app is fine within the ide, but when it's compiled it doesn't show up...any ideas?

r0ach
Jan 13th, 2000, 07:44 PM
What do you mean with "it doesn't show up"?

Frans C
Jan 14th, 2000, 02:23 AM
If you start executing your code in the form's load event, and the code takes a long time to execute, your form might not get the time to show itselve.
I know there are many if's, but this might be the case.
If so, try adding something like this to force your form the paint:

Private Sub Form_Load()
Me.Show
Me.Refresh
' do your stuff
End Sub

Clunietp
Jan 14th, 2000, 11:08 AM
is your startup form's VISIBLE property = true? Do you have a startup form? Are you using a Sub_Main and not showing any forms?

benski
Jan 14th, 2000, 11:41 AM
The app runs like a dream from within Visual Basic, but as soon as it is compiled, it runs, it show's up in the Task List in Windows, it takes up processor time, I just can't see it.

I thought I'd missed off a reference to a component (.dll/.ocx) or something, but everything seems to check out.

How strange...

netSurfer
Jan 14th, 2000, 11:44 AM
So you can run the executable and it shows up on the taskbar there is just no form that you see? IS there one in your app? Is it your startup form or do you load it? What happends when you doubleclick the program in the taskbar?

benski
Jan 16th, 2000, 04:40 PM
The application does not show up in the Taskbar, it show up in a list of executing programs in the Task List (Ctrl-Alt-Del).

benski
Jan 16th, 2000, 05:04 PM
Thanks to everyone who replied.

I'm here to admit being stupid. I had a form_resize event in my splashscreen which tiles an image across the form. I'd removed the picture without knowing it, and had the number one cardinal sin of programming as the first line of the event procedure:
On Error Resume Next --- aaargh!

I've now been wise enough to change this to:
On Error Goto ExitSub, adding a label ExitSub: as the last line of the event... :o