Hi Jacod, White Spirit!
Thanks alot!
even when set md.Model = false, my application still hangs up on this 
MessageDialog/


----- Original Message ----- 
From: "Jacob Ilsø Christensen" <[EMAIL PROTECTED]>
To: "Duong Nguyen" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Thursday, December 14, 2006 1:14 AM
Subject: Re: [Gtk-sharp-list] MessageDialog?


> Hi.
>
> On 12/13/06, Duong Nguyen <[EMAIL PROTECTED]> wrote:
>>
>>
>> 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;
>
> I guess you would want to set Modal to false to prevent your
> application from being suspended. Is that what you mean?
>
>>                                         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
>>
>>
>>
> _______________________________________________
> Gtk-sharp-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to