[MonoDevelop] MessageBox.show window wont close

James P Michels III james.p.michels at gmail.com
Thu Sep 17 16:30:10 EDT 2009


Call System.Windows.Forms.Forms.Application.DoEvents(); and it should close.

The reason it is not closing is that the Gtk message loop uses it own
message loop and does not call this.


Zenwalker wrote:
> Hello Friends,
>
> Installed MonoDevelop 2.0 on Zenwalk. Created a new GTK# project (form
> project) Added a button into the form. The Button click event i added
> MessageBox.show method from Windows.Forms package.
>
> Upon running the code, this message box gets displayed. But it wont
> close by clicking Ok on that dialog or even close button on window corner.
>
> Should i have to add an explicit close event unlike in Visual Studio?
>
> Thanks,
> Zenny :)
>
> -- 
> ----------------------
> “Live your life honestly—if you don’t, you always have
> to remember to not be yourself”
>
> "Ever tried Zen Computing?"
> visit: www.zenwalk.org <http://www.zenwalk.org>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>   


More information about the Monodevelop-list mailing list