[Mono-winforms-list] works!

Carlos Alberto Cortez calberto.cortez at gmail.com
Tue Dec 9 14:48:38 EST 2008


You should always include the error message ;-)

I suspect you are not telling the compiler to reference
System.Windows.Forms:

gmcs hello-winforms.cs -r:System.Windows.Forms

Carlos.

2008/12/9 pepe_eloy <pepe_eloy at yahoo.com.mx>

>
>
> Thanks Andy for your help.
>
> I ran the program as you tell me and works! This means the libraries are
> installed, but why the program didn't compile?
>
> I show the code I'm, using
>
> //Code for hello-winforms.cs
> //this file is in /home/proyectos-mono
>
> using System;
> using System.Windows.Forms;
>
> public class HelloWorld : Form
> {
>        static public void Main ()
>        {
>                Application.Run (new HelloWorld ());
>        }
>
>        public HelloWorld ()
>        {
>                Text = "Hello Mono World";
>        }
> }
>
> Need I to specify the path of libraries?
>
> Thanks for the help
>
> José Eloy
>
> --
> View this message in context:
> http://www.nabble.com/I-get-error-compiling-in-ubuntu-tp20786571p20921951.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20081209/a76aa6f3/attachment-0001.html 


More information about the Mono-winforms-list mailing list