Jump to content

Recommended Posts

Posted (edited)

Hi there,

I'm hoping someone with a bit more experience of VB6 might be able to help me out with this...

I'm using a generic splash screen script which works fine as is, but I have no idea how to get the name of the exe to be displayed as the splash appears.

The purpose is so that whatever the splash screen exe is named as, will appear in the splash, (without the .exe part)

E.g.

If I were to rename the splash exe to nlitened.exe, it will display this:

tcux4.gif

Hope I explained it well enough :rolleyes:

Thanks in advance

Edited by nlitened

Posted

In fact no, you didn't explained it well. If the name of the executable appears on the form, it's because there is a control on that form to show it. It will not be there by magic.

Look at the form and remove the right bottom control. You didn't include the form in the attachment so I can't help you more.

Posted

Label1.Caption = App.Title

However, if they rename it the app will not update the external file name, only the internal/compiled file name.

Posted (edited)

jdoe,

Thought I included everything in the attachment that makes the splash work?! And I wasn't expecting magic, just some helpful advice :/

Anyhow,

Thanks Tarun, seems I can't achieve the dynamic text from the exe name then, if I understand you correctly, cheers for looking anyway.

Edited by nlitened
Posted

The correct answer is to create a Label on the splash screen, name it Label1 for example and use the following code.

Label1.Caption = Replace(App.EXEName, ".exe", "")

Posted
Many thanks jcarle, I was playing with App.EXEName for at least 2 hours last night, but that did the trick perfectly!

Cookie for you

cookiegr8.gif

WOW..

I need more..

:thumbup

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...