[Mono-winforms-list] Request for help: MWF Control in a GTK Container

Ivan N. Zlatev contact at i-nz.net
Sat Jul 28 19:10:09 EDT 2007


On 7/28/07, Valentin Sawadski <valentin.sawadski at gmx.de> wrote:
> Hi,
>
> On Sat, 2007-07-28 at 00:38 +0300, Ivan N. Zlatev wrote:
> > I have been trying to parent a MWF control in a GTK Container
> > unsuccessfully. I have attached the result of my hackings, which
> > doesn't crash, but doesn't seem to show the MWF control properly.
> >
> > Anyone care to help me out figure what's wrong and how to make this
> > work? I really need this working in order to integrate the GSoC
> > WinForms designer in MonoDevelop. :(
>
> I haven't got much experience with this kind of stuff, but at first
> glance it looks like your control is being created at a different thread
> than the one on which System.Windows.Forms.Application.Run is being
> invoked on.
>
> Doesn't it needed to be created in the same thread because
> System.Windows.Forms.Application.Run creates the message pumps only on
> its current thread?
>

Absolutely true. I have overlooked that and infact it seems to work
very well now! Thanks!

I have attached the updated code in case someone ever finds it useful
for something.
-- 
Ivan N. Zlatev

Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mwf-in-gtk.cs
Type: text/x-csharp
Size: 2098 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20070729/e2402448/attachment.bin 


More information about the Mono-winforms-list mailing list