i want to show splash screen at the start, which is in one task. when user clicks on splash screen or move mouse over splash screen, then splash screen should be closed and it should show other form like MDI form.
but when i am closing splash screen and starting other task, which show MDI form.
it closes whole application.
please help to find the solution
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The most simple solution to this problem is just to hide (Visible = false) the splash form instead of closing it. This approach is often used to implement splash windows. Does it suit your needs?
Regards,
--
Oleg Zhukov
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i want to show splash screen at the start, which is in one task. when user clicks on splash screen or move mouse over splash screen, then splash screen should be closed and it should show other form like MDI form.
but when i am closing splash screen and starting other task, which show MDI form.
it closes whole application.
please help to find the solution
Hello,
The most simple solution to this problem is just to hide (Visible = false) the splash form instead of closing it. This approach is often used to implement splash windows. Does it suit your needs?
Regards,
--
Oleg Zhukov
i had tried this solution, but with this solution, application doesn't get closed, when i am closing main form.
application splashscreen remains open, which cannot be closed, when it was hidden.
regards
Thanks for solution
Shaileshbc
Well, in this case you should just handle the Close event of the main form in a way like this:
private void MainForm_Close(object sender, EventArgs e)
{
Application.Exit();
}
Does this help?