[Mono-winforms-list] NotifyIcon problem

Peter Dennis Bartok peter at novonyx.com
Thu Dec 29 14:29:31 EST 2005


What window manager/tray manager are you using?

You should file a bug with with sample code (and description of window 
manager and tray manager), I'll look at this next week, after my vacation.

Cheers,
  Peter

-----Original Message-----
From: "Felipe Almeida Lessa" <felipe.lessa at gmail.com>
To: <Mono-winforms-list at lists.ximian.com>
Date: Thursday, 29 December, 2005 08:08
Subject: [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"



More information about the Mono-winforms-list mailing list