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

Jonathan Pobst monkey at jpobst.com
Mon May 10 14:48:58 EDT 2010


On 5/10/2010 1:03 PM, Dean Geddes wrote:
> Hi Jonathan,
>
> On Webpage http://www.mono-project.com/Guide:_Debugging_With_MWF 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.

The project files are likely out of date, so you may have to fix them 
first, like adding a reference to Mono.Posix.

You'll also have to do update the reference to MWF for any assembly that 
references System.Windows.Forms.  If you are using 3rd party assemblies 
or assemblies you do not have the source for and make them all point to 
MWF, you will end up with errors like you saw that it cannot cast 
between Control and Control, as one is the SWF Control, and the other is 
the MWF Control.

Jonathan


More information about the Mono-winforms-list mailing list