[Mono-winforms-list] Trying to use Managed.Windows.Forms

Dean Geddes dean.geddes at primus.ca
Mon May 10 14:03:49 EDT 2010


 

	  BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }
Hi Jonathan, 

	On Webpage http://www.mono-project.com/Guide:_Debugging_With_MWF [1]
it says: 

	When debugging Winforms applications for Mono, many times it is
easier if you can debug with Managed.Windows.Forms (MWF - Mono's
version of System.Windows.Forms), instead of Microsoft's
System.Windows.Forms. To accomplish this, you can load the MWF project
file into your solution, which will allow you to debug into Mono's MWF
code. 

	This is what I am attempting to do but with little success. 

	Cheers!
 Dean
 On Mon 10/05/10 4:44 PM , Jonathan Pobst monkey at jpobst.com sent:
  > 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:ShareMono.2010.04.26PiPe 
 > ModulesVengeoFormsFormssourceStackContainerDesigner.cs 
 > 2. Cannot convert type 'System.Windows.Forms.Control' to 
 > 'PiPe.StackContainer' F:ShareMono.2010.04.26PiPe 
 > ModulesVengeoFormsFormssourceStackContainerDesigner.cs 
 > 3. The type or namespace name 'SideLeaf' does not exist in the 
 > namespace 'System.Windows.Forms' (are you missing an assembly 
 > reference?) F:ShareMono.2010.04.26PiPe 
 > ModulespipePiPesourceSidePanel.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 


Links:
------
[1] http://www.mono-project.com/Guide:_Debugging_With_MWF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20100510/52da5ec4/attachment.html 


More information about the Mono-winforms-list mailing list