3
I added a splash screen to a project in the simplest way, that is, by changing the property Build Action for Splashscreen. Although with very similar visual effects, what really happens when we compare these two solutions?
To
public MainWindow()
{
InitializeComponent();
Thread.Sleep(5000);
}
B
public MainWindow()
{
Thread.Sleep(5000);
InitializeComponent();
}
So I just don’t notice the difference because, as the mainwindow is empty, it’s so fast that you can’t tell the difference between before and after?
– gtpt
You won’t notice the difference, because this Sleep runs on the constructor. Look in your Program.Cs, it creates a form (this is where Sleep will occur), and passes the form to Aplication.Run. The application that will show the form itself....
– user178974