Hello, 
I try to create and run a MessageDialog, but when I run my application (with 
the Glade form named Window), the MessageDialog appears in unusual way 
(application suspended)


Gtk.MessageDialog md = new Gtk.MessageDialog(MainWindow,
                                            Gtk.DialogFlags.DestroyWithParent,
                                            Gtk.MessageType.Question,
                                            Gtk.ButtonsType.YesNo, szQuestion);

                                        md.Modal = true;

                                        Gtk.ResponseType result = 
(Gtk.ResponseType)md.Run();
                                   
                                        if (result == Gtk.ResponseType.Yes)
                                        {
                                            md.Destroy();
                                           DoSomething();
                                        }
                                        else
                                        {
                                            md.Destroy();
                                            DoSomethingElse();
                                        }
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to