On the icon thing, did you make sure that the application icon (project
settings), was set to the icon file? I suppose that it might also be
necessary to have a 32x32 version of the icon, which it's not on my devices
(don't have a PPC).
I notice you use the following lines to load the icon:
// Load icon.
string szPath =
Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
NotifyIcon.NotifyIcon.ExtractIconEx(szPath, 0, 0, ref icon, 1);
I tried this approach:
oIcon = new
Icon(Assembly.GetExecutingAssembly().GetManifestResourceStream("NotifyIcon.t
est.ico"),32,32);
hIcon = Icon.GetHicnFromIcon(oIcon);
The .ico file is included in the project and its build action is set to
"Embedded Resource".
The GetHicnFromIcon method is not documented. I found it in the object
browser. It seems to get a valid IntPtr to the icon.
But when run, the icon is not displayed. I can click the area where the
icon would normally appear and it reacts to the click, but no icon is
visible. Any ideas?
--
Chris
To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.