[Gtk-sharp-list] How to show dialog modal and wait for it?
Maciej Pilichowski
bluedzins at wp.pl
Fri Dec 25 01:58:20 EST 2009
Hi,
I know, the lamest question there can ever be, but to my surprise I
cannot achieve this simple goal with Gtk#.
I copied the message dialog example code from the web, it should
create dialog, show it (so far so good) and wait for it to close. But
it does not wait -- the main code continue executing.
MessageDialog md = new MessageDialog
(this, DialogFlags.Modal, MessageType.Error, ButtonsType.Close,
"some error");
md.Run ();
// <-- here, I would like to stop and wait for dialog to be closed
md.Destroy();
Thank you in advance.
Cheers,
More information about the Gtk-sharp-list
mailing list