nlitened Posted August 16, 2007 Posted August 16, 2007 (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:Hope I explained it well enough Thanks in advance Edited August 18, 2007 by nlitened
jdoe Posted August 17, 2007 Posted August 17, 2007 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.
Tarun Posted August 17, 2007 Posted August 17, 2007 Label1.Caption = App.TitleHowever, if they rename it the app will not update the external file name, only the internal/compiled file name.
nlitened Posted August 17, 2007 Author Posted August 17, 2007 (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 August 17, 2007 by nlitened
jcarle Posted August 18, 2007 Posted August 18, 2007 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", "")
nlitened Posted August 18, 2007 Author Posted August 18, 2007 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
tidelgl Posted August 18, 2007 Posted August 18, 2007 Many thanks jcarle, I was playing with App.EXEName for at least 2 hours last night, but that did the trick perfectly!Cookie for youWOW..I need more..
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now