[Mono-list] Migrating Windows C#.NET Winforms project to OSX using MonoDevelop

Stifu stifu at free.fr
Fri Jul 19 08:51:51 UTC 2013


Unfortunately, NotifyIcon.ShowSystray() has not been implemented on Mac.

References:
http://mono.1490590.n4.nabble.com/SysTray-Compatibility-td4657850.html
http://lists.ximian.com/pipermail/mono-bugs/2008-October/080810.html

I wonder if it works if you use the X11 driver (command line:
"MONO_MWF_MAC_FORCE_X11=1 mono yourapp.exe"). I guess it should.

Otherwise, you basically have 3 options:
- Implement NotifyIcon.ShowSystray() in Mono (I wish)
- Not use NotifyIcon.ShowSystray()
- Not use WinForms


mike1972 wrote
> I have a C#.NET Windows Forms project which compiles, builds and runs
> without any problems on Windows. Now I'm trying to migrate it to OSX using
> Mono. The project compiles and builds, but I get an exception (see link to
> image below). When I double-click one of the entries in the stack trace,
> it
> says that the file couldn't be found. Does this mean that I forgot to
> install something when I installed Mono (i.e. something related to support
> for Windows.Forms) ???? According to the mono website, WinForms should be
> fully supported so I'm not sure why I get the exception saying that the
> requested feature isn't implemented?!?!
> 
> Any help is appreciated - thank you!!
> 
> http://oi41.tinypic.com/i3hpxv.jpg
> 
> My setup is:
> 
> Mac OS X 10.8.4
> 
> IDE: MonoDevelop 3.0.6
> 
> Runtime:
> 
>     Mono 2.10.12 (mono-2-10/c9b270d)
>     GTK 2.24.16
>     GTK# (2.12.0.0)
>     Package version: 210120000
> 
> _______________________________________________
> Mono-list maillist  -  

> Mono-list at .ximian

> http://lists.ximian.com/mailman/listinfo/mono-list





--
View this message in context: http://mono.1490590.n4.nabble.com/Migrating-Windows-C-NET-Winforms-project-to-OSX-using-MonoDevelop-tp4660233p4660235.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list