[Mono-list] System.Windows.Forms Form ?

Daniel Stutz daniel.stutz@aplysia.ch
Thu, 26 Jun 2003 02:48:22 +0200


Hello folks

I'm new to the group of C#-developers and tried to use
mono und Win2k.

First I did a simple console application, which compiled
without problems.

Then I found an example for a form based application on the
O'Reilly Network.

(mywinapp.cs):
using System;
using System.Windows.Forms;

namespace myprogs
{
  public class MyWinApp: Form
  {
    public static void Main(string[] args)
    {
      MyWinApp form = new MyWinApp();
      Application.Run(form);
    }
  }
}

When I try to compile the example, the followig errors
are reported by mcs:
mywinapp.cs(6) error CS0246: Cannot find type `Form'
mywinapp.cs(2) error CS0246: The namespace `System.Windows.Forms' can 
not be found (missing assembly reference?)
Compilation failed: 2 error(s), 0 warnings

I've downloaded and installed mono with the setup program from the
download section (mono-0.24-win32-1.exe).

Whats wrong ?
Who can help me ?

Thanks
Dani