SUSPECT: RE: [Mono-winforms-list] NotifyIcon problem
Rafael Higuera Matas
rhiguera at axesor.es
Thu Dec 29 11:17:20 EST 2005
I'm not sure, but have you noticed the white space at the beginning of the string in GetManifestResourceStream(" Carteiro.ico")) ?
________________________________
De: mono-winforms-list-bounces at lists.ximian.com [mailto:mono-winforms-list-bounces at lists.ximian.com] En nombre de Felipe Almeida Lessa
Enviado el: jueves 29 de diciembre de 2005 15:49
Para: Mono-winforms-list at lists.ximian.com
Asunto: [Mono-winforms-list] NotifyIcon problem
Hello,
I'm using Mono 1.1.12 from Debian packages and I can't make NotifyIcon work. It ocuppies a 1px space on the notification area, so it seems to me that it allocates the space but doesn't put the icon there.
Here's the snippet of code that creates the icon:
notifyIcon = new NotifyIcon();
notifyIcon.Icon = new Icon(Assembly.GetCallingAssembly().GetManifestResourceStream(" Carteiro.ico"));
notifyIcon.Text = "Carteiro";
notifyIcon.ContextMenu = iconMenu;
notifyIcon.DoubleClick += NewMessageEvent;
notifyIcon.Visible = true;
The .ICO is working perctly, in fact I use it for the window icon without problems.
Any ideas?
Thanks.
--
"Quem excele em empregar a força militar subjulga os exércitos dos outros
povos sem travar batalha, toma cidades fortificadas dos outros povos sem as
atacar e destrói os estados dos outros povos sem lutas prolongadas. Deve
lutar sob o Céu com o propósito primordial da 'preservação'. Desse modo suas
armas não se embotarão, e os ganhos poderão ser preservados. Essa é a
estratégia para planejar ofensivas."
-- Sun Tzu, em "A arte da guerra"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20051229/b5d5870c/attachment.html
More information about the Mono-winforms-list
mailing list