By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,338 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,338 IT Pros & Developers. It's quick & easy.

Application Dessapears

P: n/a
Hi,

After the splash that loads de application sometimes, and I repeat
SomeTimes, the app get's invisible. It just don't appear on my task bar
neither on the screen. But if I do Alt + TAb the application is there and
cames back to normal, also if I open the task manager the application is
there.

How can I prevent this to happen?
Thanks In Advance
May 11 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

Post the code you are using, to show/hide splash screen
"Diogo Alves - Software Developer"
<Di*************************@discussions.microsoft .com> wrote in message
news:3E**********************************@microsof t.com...
Hi,

After the splash that loads de application sometimes, and I repeat
SomeTimes, the app get's invisible. It just don't appear on my task bar
neither on the screen. But if I do Alt + TAb the application is there and
cames back to normal, also if I open the task manager the application is
there.

How can I prevent this to happen?
Thanks In Advance

May 11 '06 #2

P: n/a
this is on Splash Class:

static private void ShowForm()
{
sp = new Splash();
Application.Run(sp);
}

static public void CloseForm()
{
if (sp != null)
{
if (sp.label1.InvokeRequired)
{
CloseWindow d = new CloseWindow(CloseForm);
sp.Invoke(d);
}
else
{
if (sp != null && sp.IsDisposed == false)
{
// Make it start going away.
sp.m_dblOpacityIncrement = -sp.m_dblOpacityDecrement;
}
th = null; // we don't need these any more.
sp = null;
}
}

}

static public void ShowSplash()
{
//#if (!DEBUG)
if (sp.label1.InvokeRequired)
{
Show d = new Show(ShowSplash);
sp.Invoke(d);
}
else
{
sp.Visible = true;
}

//#endif
}
This is on the main form:

static void Main()
{
bool retry = true;
bool bLicense = false;
bool chkPoint = false;
Splash.ShowSplashScreen();
....
Application.Run(new MainForm());
}

public MainForm() //MainForm Constructor
{
//
// Required for Windows Form Designer support
//

InitializeComponent();
...
System.Threading.Thread.Sleep(500);
Splash.CloseForm();
}

This should be all you want...

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

Post the code you are using, to show/hide splash screen
"Diogo Alves - Software Developer"
<Di*************************@discussions.microsoft .com> wrote in message
news:3E**********************************@microsof t.com...
Hi,

After the splash that loads de application sometimes, and I repeat
SomeTimes, the app get's invisible. It just don't appear on my task bar
neither on the screen. But if I do Alt + TAb the application is there and
cames back to normal, also if I open the task manager the application is
there.

How can I prevent this to happen?
Thanks In Advance


May 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.