J
Joachim Rosskopf
Hello,
in a small database-client-application I use a custom
ApplicationContox to first show a splash screen to do some
initialisation in a background worker. After closing that Form a
second Main Form, the real application should be shown. When I start
the application in VisualStudio 2005 everything works fine.
But after deploying the application by ClickOnce the splash screen
shows up and does the work. After closing the Main Form never shows.
After attaching a debugger to the still running process, I see, that
the Form.Show() method of the Main Form blocks.
Here I´ll show you the OnMainFormClosed method of my
ApplicationContext:
<snip>
protected override void OnMainFormClosed(object sender, EventArgs e)
{
if (sender is SplashScreen)
{
base.MainForm = this.mainForm;
base.MainForm.Show(sender as SplashScreen);
MessageBox.Show("After Show;");
}
else if (sender is Main)
{
base.OnMainFormClosed(sender, e);
}
}
</snip>
What´s going wrong.
Regards
in a small database-client-application I use a custom
ApplicationContox to first show a splash screen to do some
initialisation in a background worker. After closing that Form a
second Main Form, the real application should be shown. When I start
the application in VisualStudio 2005 everything works fine.
But after deploying the application by ClickOnce the splash screen
shows up and does the work. After closing the Main Form never shows.
After attaching a debugger to the still running process, I see, that
the Form.Show() method of the Main Form blocks.
Here I´ll show you the OnMainFormClosed method of my
ApplicationContext:
<snip>
protected override void OnMainFormClosed(object sender, EventArgs e)
{
if (sender is SplashScreen)
{
base.MainForm = this.mainForm;
base.MainForm.Show(sender as SplashScreen);
MessageBox.Show("After Show;");
}
else if (sender is Main)
{
base.OnMainFormClosed(sender, e);
}
}
</snip>
What´s going wrong.
Regards