المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Handle exceptions in GTK#



C# Programming
09-14-2009, 11:40 AM
Hi!
So if place try/catch block in Main() function
try{
Application.Init ();
MainWindow win = new MainWindow ();
win.Show ();
Application.Run ();
}
catch(Exception baseExc){...}
and then throw exception in button click event, this exception will not be catched! Any ideas how to do it?