Вот так у вас должен выглядеть Program.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Microsoft.VisualBasic;
using Microsoft.VisualBasic.ApplicationServices;
namespace RADInstallWMI
{
static class Program
{
///
/// Главная точка входа для приложения.
///
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
new SplashApp().Run(args);
}
class SplashApp : WindowsFormsApplicationBase
{
protected override void OnCreateSplashScreen()
{
this.SplashScreen = new Splash();
}
protected override void OnCreateMainForm()
{
//Connect to db, remote server or anything you like in here
System.Threading.Thread.Sleep(2500);
//create your main form and the SplashForm will close here automatically
this.MainForm = new Form1();
}
}
}
}
Splash — обычная форма с фоном из картинки.
Редактируя эту строчку кода вы можете выставлять время отображения SplashScreen:
System.Threading.Thread.Sleep(2500); //
0.00 (0%) 0 votes










