I just installed mono 0.17 from the RPMs (mono and mono-devel) on RH
7.1. I can successfully compile and run console applications, but any
class I try to compile that uses System.Windows.Forms gives me the
following error:

        SimpleHelloWorld.cs(15) error CS0246: Cannot find type `Form'
        Compilation failed: 1 error(s), 0 warnings

I have the simplest of classes (actually sample code form the .NET SDK),
shown below:
-----------------------------------------------------------------
        using System;
        using System.Windows.Forms;

        public class SimpleHelloWorld : Form {
            [STAThread]
            public static int Main(string[] args) {
                Application.Run(new SimpleHelloWorld());
                return 0;
            }

            public SimpleHelloWorld() {
                this.Text = "Hello World";
            }
        }
-------------------------------------------------------------------
I think I have everything I need. I found System.Windows.Forms.dll in
/usr/lib. I even ildasm'ed it from my Windows box and found all the
classes in there (including Form).

Any hints?

Thanks
Andy


_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to