[MonoDevelop] MessageBox.show window wont close

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Sep 17 13:05:38 EDT 2009

On Thu, Sep 17, 2009 at 1:03 PM, Chris Howie <cdhowie at gmail.com> wrote:
> 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.

I'll add to this that although it should be *possible* to mix GTK# and
winforms in one app, it's hard and requires an understanding of the
message loops and graphics handles.

Michael Hutchinson

More information about the Monodevelop-list mailing list