Results 1 to 8 of 8

Thread: Invisible Executable...

  1. #1

    Thread Starter
    Lively Member benski's Avatar
    Join Date
    Sep 1999
    Location
    UK
    Posts
    126

    Post

    My app is fine within the ide, but when it's compiled it doesn't show up...any ideas?

  2. #2
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722

    Post

    What do you mean with "it doesn't show up"?

  3. #3
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Post

    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


  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    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?

  5. #5

    Thread Starter
    Lively Member benski's Avatar
    Join Date
    Sep 1999
    Location
    UK
    Posts
    126

    Post

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

  6. #6
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    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?

  7. #7

    Thread Starter
    Lively Member benski's Avatar
    Join Date
    Sep 1999
    Location
    UK
    Posts
    126

    Post

    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).

  8. #8

    Thread Starter
    Lively Member benski's Avatar
    Join Date
    Sep 1999
    Location
    UK
    Posts
    126

    Post

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width