Copyright assigned 2008 to "microsoft.public.dotnet.framework.windowsforms"
Usenet Forum (see note at end for clarification)
I am quite clear right now that this problem ONLY arises when you try to
change a Form's ShowInTaskBar property in its Form_Activated and
Form_Deactivate events.
I believe there is a high probability that this is related to the fact that
ShowInTaskBar under the hood is invoking the window styles api ... most
likely the window is being re-created ... and this is triggering recursive
firing of events somehow interacting with whatever the Activated and
Deactivate events are doing.
It is surprising that I have not been able to find a definitive statement
from MS on this on MSDN, but right now (since I switched to Internet
Explorer 8 beta 1) MSDN pages take literally minutes to refresh in my
browser. This is in part due to a significant apparent breakdown in my ISP's
(northern Thailand) ADSL service which has lasted ten days now. So those
factors have limited my time for searching MSDN.
I am creating a work around for this now in my own application using a
"dummy window" as a minimization placeholder for the case when the end-user
selects the option to show only the current active window in the taskbar
(rather than just allowing all active open windows of #n windows to show in
the taskbar).
I tried several "work-arounds" for this that involved things like raising an
event up to a static event-handler in a Class from the Activated and
Deactivate events : whatever I tried ... if it was triggered by these two
events, it crashed .NET.
It's a kludge, it's ugly, but it will work. I have no idea if you could work
around this using API's or not, but the application I am writing must not
use WndProc's and such.
best, Bill
copyright notice : for use by any non-commercial, non-profit, advertising
free Usenet or Internet forum : you may not republish this message on any
website with commercial advertisements. Of course no one has any "copyright"
on technical issues and solutions, only on the specific message and text in
which they are embodied.