0
votes

I have a .NET application (C#, WinForms) application running on Windows XP. If i minimize my application, and have several other windows minimized to the taskbar, and click on my application (in the taskbar) then often i see the taskbar "icon" blink but my application fails to "restore" its window. Any suggestions to what might cause this? Any hints on how to check if my application is not getting an event from the mouse-click.

UPDATE: Could anybody give an example of, how to output any incoming events to an application. Something that allows me to e.g. print the received events using Console.Writeline() to see, if my application gets an event when I click on the taskbar?

3
Windows is littered with bugs similar to this. More common is that the OS fails to minimize a window when its button is clicked on the taskbar, or doesn't synchronize the taskbar button's relief with the current window in focus.Cecil Has a Name

3 Answers

1
votes

http://www.catch22.net/software/winspy-17

I venture to guess that your app will become in focus.

0
votes

AFAIK this should not have anything to do with your application. Is there any other application running which always remains on top?

0
votes

You dont handle maximising and minimising to and from the taskbar in your app. That is to say you dont have to. Windows deals with this and so this would appear to be in no way related to your app not handling an event, rather Windows doing something (or not doing something).