[Mono-winforms-list] Trying to use Managed.Windows.Forms
Jonathan Pobst
monkey at jpobst.com
Mon May 10 12:44:23 EDT 2010
> I just downloaded Managed.Windws.Forms and am attempting to use them. On
> my Mac (10.5.8) I get two errors:
>
> 1. The type of namedspace name 'Unix' does not exist in the namespace
> 'Mono'. Are you missing an assembly reference? (CS0234). I get
> this error in class XplatUIX11.cs on statement using
> Mono.Unix.Native.
> 2. The type of namedspace name 'Polldf' does not exist in the
> namespace 'Mono'. Are you missing an assembly reference? (CS0246).
> I get this error in class XplatUIX11.cs on statement using
> Mono.Unix.Native.
It might help if you explain what you are trying to do. It looks like
on Mac, you are trying to compile Managed.Windows.Forms (MWF). Is there
a reason you are trying to do this instead of simply using the provided
binary? It looks like the compiler cannot find the Mono.Posix assembly.
> On my Windows XP SP3 computer I get three errors:
>
> 1. The type 'System.Windows.Forms.Control' is defined in an assembly
> that is not referenced. You must add a reference to assembly
> 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089'. F:\Share\Mono.2010.04.26\PiPe
> Modules\VengeoForms\Forms\source\StackContainerDesigner.cs
> 2. Cannot convert type 'System.Windows.Forms.Control' to
> 'PiPe.StackContainer' F:\Share\Mono.2010.04.26\PiPe
> Modules\VengeoForms\Forms\source\StackContainerDesigner.cs
> 3. The type or namespace name 'SideLeaf' does not exist in the
> namespace 'System.Windows.Forms' (are you missing an assembly
> reference?) F:\Share\Mono.2010.04.26\PiPe
> Modules\pipe\PiPe\source\SidePanel.cs
It looks like here you are trying to compile some of your own code, but
one of your projects is referencing MWF while another of your projects
is referencing MS's System.Windows.Forms.
Jonathan
More information about the Mono-winforms-list
mailing list