nlitened Posted August 16, 2007 Share 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 Link to comment Share on other sites More sharing options...
jdoe Posted August 17, 2007 Share 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. Link to comment Share on other sites More sharing options...
Tarun Posted August 17, 2007 Share 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. Link to comment Share on other sites More sharing options...
nlitened Posted August 17, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
jcarle Posted August 18, 2007 Share 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", "") Link to comment Share on other sites More sharing options...
nlitened Posted August 18, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
tidelgl Posted August 18, 2007 Share 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.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now