hi there i have a fairly small project im trying to make a splash screen that comes up for a short time and then disapears revealing the main form i have my splash screen working with a small piece of code in the aplication events and i just used the add new form splash screen for the rest my problem comes as the splash screen does not always display in front of form one and when it does you can just select the main form from behind and carry on as if it wasent there i was hoping to hide the main form or at least make it unselectable untill the splash screen disapears
thank you for any assistance tim.

splash screen
Sean D
ahhhhhhh
thank you for the help ive just added a some more forms and info on current forms to my project which increases the time it takes to load so all is spot on thank you for your help
tim
Dribble
hi thanks for the reply but i do have the splash screen set up from the aplication tab so it show up before my main form it just shows up for a split second so i added the above code to the aplication events but it dosent nesaceraly stay in focus as the main window
Rowland
Seems to work fine for me - the code above will have the splash screen visible for 5 secs. If you are using the splash screen as implemented by the framework, the splash screen shows prior to the main form. Since it's the only form, it will have focus (nothing else to focus to).
Are you doing something different
You have to remember, though, the ONLY purpose of a splash screen is to show the user that something is happening while you application loads (time 'actually' passes quicker when you have something to look at). If your application loads quickly, then you don't need a splash screen. If you are able to load your main form, then you don't need the splash screen. You can have one, but it needs to be clickable so it goes away immidiately so the user can actually use the application.
Kaltenberg
Since you have code in the application events (Um, I wonder what it does ) my guess is you haven't used the Application framework ability to display a splash screen with zero lines of code.
Go to your Solution Explorer, select My Project, select the application tab. At the botom, there's an option to select a form to be used as a splash screen as your main form is loading. Use this and your splash screen will show before the form.
TerryMcP
When I did that, that's all it did! It loaded the SpashScreen and just hung! The application never ran. The application form never loaded. I had to [ Ctrl+Alt+Del ] to abort!