[Mono-osx] Embedding and WinForms

Steve Baer steve at mcneel.com
Fri Oct 2 22:23:00 EDT 2009


Hi David,
I tried creating a System.Windows.Forms.NativeWindow from the Process.CurrentProcess.MainWindowHandle but that didn't seem to make a difference. Thanks for the suggestion though.

-Steve
  ----- Original Message ----- 
  From: David Suarez 
  To: Steve Baer 
  Cc: mono-osx at lists.ximian.com 
  Sent: Friday, October 02, 2009 7:35 AM
  Subject: Re: [Mono-osx] Embedding and WinForms


  You may need to specify the parent window in the call to messagebox.show

  Steve Baer wrote: 
    Hi guys,
    I've been experimenting with embedding mono in our OSX Cocoa based application as a plug-in system. So far everything is working great except for one teeny weeny little thing:)
    If my C# code calls
    System.Windows.Forms.MessageBox.Show("Hi");

    a message box is displayed and my other application windows appear to be in a modal state. The problem is that if I click on any other part of my application the messagebox displays behind the window I just clicked (it does not stay on top.) 

    Is there something that I need to do to keep modal windows like messageboxes to stay on top?

    Thanks,
    -Steve
----------------------------------------------------------------------------
_______________________________________________
Mono-osx mailing list
Mono-osx at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-osx
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20091002/840ee1d5/attachment-0001.html 


More information about the Mono-osx mailing list