[MonoDevelop] MessageBox.show window wont close

Chris Howie cdhowie at gmail.com
Thu Sep 17 13:03:20 EDT 2009

On Thu, Sep 17, 2009 at 12:53 PM, Zenwalker <shailesh.zenwalk at gmail.com> wrote:
> 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?

No, but you should not be mixing Gtk# with WinForms unless you have a
very good reason to do so, like implementing a WinForms designer in
Gtk# or something.

Use Gtk's MessageDialog class instead.

Chris Howie

More information about the Monodevelop-list mailing list