473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Application Dessapears

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
2 1224
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
3
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
6
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: ...
9
by: jeff | last post by:
Hi All. I realize that when my Deployed winforms application starts, Windows needs to load the .net 2 framework before control is given to my application.... Is there anyway to either ... -...
3
by: asadikhan | last post by:
Hi, I have written a windows application with a GUI (let's call it MENU). I own the code for this application and have access to it. We have another application that is a third-part windows...
2
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN...
0
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.