[Mono-list] System.Windows.Forms Form ?
Aleksey Ryabchuk
ryabchuk@yahoo.com
Thu, 26 Jun 2003 04:04:38 -0700 (PDT)
Hello Daniel,
You need to reference System.Windows.Forms assembly
from cmd line :
mcs -r:System.Windows.Forms.dll mywinapp.cs
Regards
Aleksey
--- Daniel Stutz <daniel.stutz@aplysia.ch> wrote:
> 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
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com