I have made a simple splash screen in a C# winforms application. The problem is that the form shows up, but I have a label inside my form which doesn’t show up. A black box is shown where the label should be displayed.
I have made a Form, keeping the properties ShowInTaskbar=False, and FormBorderStyle=None . The form’s opacity is set to 50%. Then I have a label inside this form, with text='Loading...' .
I have used this code to show the form:
splashScreen splash=new splashScreen();
splash.Show();
I’ve used splash.Close() to close it when I want to
This is most likely because your app is too busy loading to render the label. For a splash screen to be responsive while the app is loading it needs to be multi threaded. You can find information on how to do that here.