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

Aleksey Ryabchuk ryabchuk@yahoo.com
Thu, 26 Jun 2003 07:37:42 -0700 (PDT)


He is trying to run his app on Windows, so Wine is not
needed. But most likely the app will not work on this
release of Mono anyway, because of calling
conventions.

--- Jonathan Pryor <jonpryor@vt.edu> wrote:
> It should be noted that even after you get your
> application compiled, it
> won't run correctly.
> 
> At present, in order to run Windows.Forms apps, you
> need a
> specially-compiled version of Wine installed.  The
> standard Wine will
> not work with Mono.  See:
> 
> 
>
http://lists.ximian.com/archives/public/mono-list/2003-May/014079.html
> 
> Please note that Mono's System.Windows.Forms
> implementation is not
> complete yet, so there are likely to be programs
> that won't run under
> Mono at this time.
> 
> Alternatives to System.Windows.Forms include:
>   - Gtk#: http://www.go-mono.com/gtk-sharp.html
>   - Qt#: http://qtcsharp.sourceforge.net/
>   - SharpWT:
> http://www.sharpwt.net/OpenSource/SharpWT/
> 
> Note that the alternatives are also incomplete (but
> still being worked
> on), but are likely more complete than
> System.Windows.Forms.
> 
>  - Jon
> 
> On Thu, 2003-06-26 at 07:04, Aleksey Ryabchuk wrote:
> > 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
> > _______________________________________________
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com