Re: Trying to use Managed.Windows.Forms

Dean Geddes <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
 

	  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 [email protected] 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

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.