Embedding and WinForms

View: New views
3 Messages — Rating Filter:   Alert me  

Embedding and WinForms

by Steve Baer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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@...
http://lists.ximian.com/mailman/listinfo/mono-osx

Re: Embedding and WinForms

by David Suarez-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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@... http://lists.ximian.com/mailman/listinfo/mono-osx


_______________________________________________
Mono-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx

Re: Embedding and WinForms

by Steve Baer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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 -----
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@... http://lists.ximian.com/mailman/listinfo/mono-osx


_______________________________________________
Mono-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx