Hi guys,
I'm trying to instantiate an object on a new thread, but when I do this I found the form or the splashScreen object not showing.
When I directly call the method which instantiate the object it showing. Why this happening???
here the code for better grasping.
The following code of the parent form which responsible for calling splashScreen object.
public KEditorMain()
{
InitializeComponent();
//not showing if this line used!!!
Thread t = new Thread(this.doSplaching);
t.Start();
//working when this line used
this.doSplaching();
}
The following method used to call splash screen object
public void doSplaching() {
splashScreen sp = new splashScreen();
sp.Visible = true;
sp.Show();
}