[Mono-winforms-list] Using Managed.Windows.Forms

Андрей Серебрянский Андрей Серебрянский
Fri, 18 Feb 2005 12:07:48 +0300

    How can I use classes from Managed.Windows.Forms on Mono 1.1.3? When I try
to build a simple application:

namespace SomeNamespace
    public class SomeClass
        public static void Main(string [] args)
            System.Windows.Forms.MessageBox.Show("Hello world");

with the following command "mcs sample.cs /r:System.Windows.Forms.dll
/r:System.Drawing.dll", and then try to execute it "mono sample.exe" I get
NullReferenceException in WineLoadLibrary, which indicates that it still uses
Wine. How can I make this example work? By the way I have RedHat Fedora Core 2 if that helps.

Thank you beforehand.