[Mono-osx] SysTray Compatibility

Miguel de Icaza miguel at xamarin.com
Tue Jan 8 13:59:35 UTC 2013


The functionality was never implemented in mono's winforms

On Friday, December 21, 2012, neilt wrote:

> I'm trying to write an app that uses the system tray, that can be used on
> Windows and Mac. I've checked compatibility with MoMa and it comes out
> fine.
> I've run it in Mono in Windows fine, but on OSX it errors out with the
> following.
>
> Unhandled Exception:
> System.NotImplementedException: The requested feature is not implemented.
>   at System.Windows.Forms.XplatUICarbon.SystrayAdd (IntPtr hwnd,
> System.String tip, System.Drawing.Icon icon, System.Windows.Forms.ToolTip&
> tt) [0x00000] in <filename unknown>:0
>   at System.Windows.Forms.XplatUI.SystrayAdd (IntPtr handle, System.String
> tip, System.Drawing.Icon icon, System.Windows.Forms.ToolTip& tt) [0x00000]
> in <filename unknown>:0
>   at System.Windows.Forms.NotifyIcon.ShowSystray () [0x00000] in <filename
> unknown>:0
>   at System.Windows.Forms.NotifyIcon.set_Visible (Boolean value) [0x00000]
> in <filename unknown>:0
>   at (wrapper remoting-invoke-with-check)
> System.Windows.Forms.NotifyIcon:set_Visible (bool)
>   at SystrayTest.Form1.InitializeComponent () [0x00000] in <filename
> unknown>:0
>   at SystrayTest.Form1..ctor () [0x00000] in <filename unknown>:0
>   at (wrapper remoting-invoke-with-check) SystrayTest.Form1:.ctor ()
>   at SystrayTest.Program.Main () [0x00000] in <filename unknown>:0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.NotImplementedException: The
> requested feature is not implemented.
>   at System.Windows.Forms.XplatUICarbon.SystrayAdd (IntPtr hwnd,
> System.String tip, System.Drawing.Icon icon, System.Windows.Forms.ToolTip&
> tt) [0x00000] in <filename unknown>:0
>   at System.Windows.Forms.XplatUI.SystrayAdd (IntPtr handle, System.String
> tip, System.Drawing.Icon icon, System.Windows.Forms.ToolTip& tt) [0x00000]
> in <filename unknown>:0
>   at System.Windows.Forms.NotifyIcon.ShowSystray () [0x00000] in <filename
> unknown>:0
>   at System.Windows.Forms.NotifyIcon.set_Visible (Boolean value) [0x00000]
> in <filename unknown>:0
>   at (wrapper remoting-invoke-with-check)
> System.Windows.Forms.NotifyIcon:set_Visible (bool)
>   at SystrayTest.Form1.InitializeComponent () [0x00000] in <filename
> unknown>:0
>   at SystrayTest.Form1..ctor () [0x00000] in <filename unknown>:0
>   at (wrapper remoting-invoke-with-check) SystrayTest.Form1:.ctor ()
>   at SystrayTest.Program.Main () [0x00000] in <filename unknown>:0
>
> I'm assuming regardless of what MoMa says that the System Tray is not
> supported. How is this normally handled. Is this not possible with a native
> windows app, and needs to be GTK# or something?
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/SysTray-Compatibility-tp4657850.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com <javascript:;>
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20130108/649e6f99/attachment.html>


More information about the Mono-osx mailing list