A
anthony.duerr
I have encountered a problem (most certainly a .NET bug), that, for the
life of me, I cannot figure out how to work around.
Using Visual Studio 2003, with enabled XP Visual Styles.
There are two possible scenarios here, the first one works properly,
while the 2nd one doesn't.
Scenario 1
----------
* Application opens with a notifyicon instead of a form window.
* User double clicks the notifyicon to show the main form window
* The main form window properly displays the toolbar buttons with
their respective images from the assigned ImageList. The ImageList is
populated from calls to
Assembly.GetExecutingAssembly().GetManifestResourceStream("ns.file.ext")
-----------
Scenario 2
----------
Everything is the same as in Scenario 1, except for the following:
* Application opens with a notifyicon, same as above.
* A Timer event triggers the opening of another form window, and the
user has *not* double clicked the notifyicon to open the "main" window.
* When double clicking the notifyicon and opening the main form window,
the buttons on the toolbar do not display their images. They are
blank. This is the problem.
-----------
Also, If there is a timer tick that triggers the secondary window AFTER
the user has already opened and closed the main window, and the user
procedes to open the main window again, everything still displays as it
should.
Other than forcing the main window to open (which I do not want to do),
I absolutely cannot find a workaround for this problem. I have been
trying absolutely everything that I can think of for hours to no avail.
Any insight would be appreciated.
life of me, I cannot figure out how to work around.
Using Visual Studio 2003, with enabled XP Visual Styles.
There are two possible scenarios here, the first one works properly,
while the 2nd one doesn't.
Scenario 1
----------
* Application opens with a notifyicon instead of a form window.
* User double clicks the notifyicon to show the main form window
* The main form window properly displays the toolbar buttons with
their respective images from the assigned ImageList. The ImageList is
populated from calls to
Assembly.GetExecutingAssembly().GetManifestResourceStream("ns.file.ext")
-----------
Scenario 2
----------
Everything is the same as in Scenario 1, except for the following:
* Application opens with a notifyicon, same as above.
* A Timer event triggers the opening of another form window, and the
user has *not* double clicked the notifyicon to open the "main" window.
* When double clicking the notifyicon and opening the main form window,
the buttons on the toolbar do not display their images. They are
blank. This is the problem.
-----------
Also, If there is a timer tick that triggers the secondary window AFTER
the user has already opened and closed the main window, and the user
procedes to open the main window again, everything still displays as it
should.
Other than forcing the main window to open (which I do not want to do),
I absolutely cannot find a workaround for this problem. I have been
trying absolutely everything that I can think of for hours to no avail.
Any insight would be appreciated.