Windows Develop Bookmark and Share   
 index > Windows Forms General > Windows Forms applicatoin dissapears from Taskbar when minimized...
 

Windows Forms applicatoin dissapears from Taskbar when minimized...

Hi all

I have difficult problem. My Windows Forms Application sometimes dissapears from the taskbar when minimized. It is still running and I can open it again by using Alt->Tabulator keys (and back it is also in the taskbar...) how is that possible? what can i do against it? some of my customers open the application 10 times, because they don't see it anymore...not good for the memory;-)

thanks for your help.
Jörgen

Jörgen Ahrens  Monday, September 28, 2009 9:02 AM

Is ShowInTaskBar property of the form is set to fals somewhere in code?

Also you can restrict opening multiple instances of a program with checking the names of runningProcesses by checking if your program is listed in running processes.

If it is listed you canforce user to exit applications second instance.

Tamer Oz  Monday, September 28, 2009 9:25 AM
ShowInTaskbar is set. and it is there for almost all day (working as it should). but then suddenly while it is being minimized it dissapears from the taskbar...no errors in the event log or anywhere else...
Jörgen Ahrens  Monday, September 28, 2009 12:32 PM
Hi Jörgen,

Is this only happening on your customers' machines or you can also reproduce the problem on your own development machine? Can you let us know more about the environment that the application was running in (OS, .NET Framework version, etc.)?

Besides, I think Tamer was asking you that do you have any code that couldset the ShowInTaskBar property toFalse?

Can you create a new simple WinForm application that can reproduce the problem?

Thanks,
Jie
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

If you have any feedback, please tell us.

The CodeFx Project
My Blog (in Simplified Chinese)
Wang, Jie  Monday, September 28, 2009 12:48 PM
Hi Jie

It's happening on two customer's. Both running XP SP3, .Net Framework 2.0, Infragistics 9.1, .net crystal reports. When they minimize the program, no background tasks, nothing is running. they just minimize it, and it disapears from the taskbar...happend 3 times today...

I have no code setting the ShowInTaskbar Flag...can't reproduce the bahaving on my computer...

The two computers are always powered on and they don't do restarts very often.

Can't test it with another simpler program, as the computers are under heavy use (production).

Thanks
Jörgen

Jörgen Ahrens  Monday, September 28, 2009 1:08 PM
Use Taskmgr.exe, Processes tab. View + Select Columns and check GDI Objects, USER Objects and Handles. When one of those columns approaches 10,000 your app will start losing stuff. The common cause is removing controls from the form and forgetting to call its Dispose() method.

Hans Passant.
nobugz  Tuesday, September 29, 2009 3:09 AM

Hi Jörgen,

As you know, without a solid repro of the problemit is hard to figure out what went wrong.

I think you can try nobugz's suggestions to ask your customer's to monitor the process's memory/handle usage.

Also, you cancheck the system/application logs on those two machines to see if there are any clues.

Regards,
Jie
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com


Please remember to mark the replies as answers if they help and unmark them if they provide no help.

If you have any feedback, please tell us.

The CodeFx Project
My Blog (in Simplified Chinese)
Wang, Jie  Tuesday, September 29, 2009 11:10 AM
Thanks for your help.

I'll check those Objects in the Taskmanager when I visit the customer next time...It's such a weird behaviour. Objects and Handles on the developer machine go never beyond 1500...

Regards
Jörgen
Jörgen Ahrens  Tuesday, September 29, 2009 1:23 PM

You can use google to search for other answers

Custom Search

More Threads

• Application Scope Variables
• Keep button ratio along a row of controls
• Manipulating the applications taskbar button.
• How to tell if a Listbox's vertical scroll bar is visible?
• Folder and Icon information
• Transparent double buffered control
• i need a code for voice PC by internet(VoIP)
• copy paste?
• How can I get the images in BindingNavigator control?
• Datagridview hierarchy structure