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"
_______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
