I thing, an application is looks like more professional, if it's got splash screen. It's just an optical tuning for an application, but marketing is very important in the mobile programming. So, I show you, how can you create a form based splash screen create.
First of all, you can create two forms. One, to your main application, and one, to your splash screen. The main form's properties are your business, do what you want to your app. But your slash screen has a very important property. Set the WindowState property Maximized. Take another important step, and delete the MainMenu control. Now you get a clear form without header and menu. This is the base of your splash screen. Take a picture, label, progress bar, little animation, or other design thing into your splash form, but never take buttons, textboxes, or other user interaction needed controls.
Next, set your shiny splash. Open your main form class, and create a private splash form member. Create a new instance in the main form's constructor, and show it:
private
{ _splashScreen = new _splashScreen.Owner = this; _splashScreen.Show();
InitializeComponent();
} |
When you start your application, your splash screen is shown, but never close. Next step, close your splash screen, when your main form finished the initialization. Open the main form's load event handler, and write the splash screen closer commands into the end of the block:
private { // other code end
_splashScreen.Close(); } |
Now you've got a nice splash screen, it's not a big magic, just a little trick, but your application looks like more professional.