I’ve developed an application where I am using windows form as splash screen. After displaying splash screen, I’ve created a new thread to trigger new form. Now I want to close splash screen just after my form has been displayed.
I’ve googled my query, many discussions but couldn’t find what I want.
Please guide me a little.
Thanks.
Normally you don’t need a new thread. But once you have it, you can do it by sharing a bool value (name it closeSplash) between the two threads.
Put a timer on the splash form to check the value of closeSplash each second. When closeSplash is true, just call the Close() method of the Splash form.
See this if you choose to close the splash from another thread.