[Mono-list] How to use MWF?

Chris Howie cdhowie at gmail.com
Mon Nov 10 00:00:52 EST 2008

On Sun, Nov 9, 2008 at 12:00 PM, arcull <arcull at gmail.com> wrote:
> Hi everyone. I wonder how can I use the winforms in mono, I have installed
> version 1.1.18 on suse 10.2 via Yast, but still I can not see them in add-in
> manager, nor can I use them inside code. I created a test C# Gtk project and
> wanted to display a standard message box like this: MessageBox.Show("test
> message"); but monodevelop won't let me compile it.I googled but dindn't
> find much usefull help. The only thing I found out is that I have to declare
> the usage of winforms, so I tried to add: using System.Windows.Forms; but
> still no success, it wont compile, so I gues, the winforms I have installed
> didn't get linked to the monodevelop, how can I fix this. Thanks for your
> help.

Mixing Gtk# with winforms is not recommended.

That said, if you really want to then you have to add a reference to
System.Windows.Forms by using the reference editor.

Chris Howie

More information about the Mono-list mailing list