G
Guest
If MainForm is my entry point for my C# WinForms application, and I have
implemented a try/catch block like the following, how is it that my
application can still generate unhandled exceptions? (Message: An unhandled
exception has occurred in your application)
public class MainForm : System.Windows.Forms.Form
{
static void Main(string[] args)
{
try
{
MainForm mainForm = new MainForm();
Application.Run(mainForm);
}
catch (Exception)
{
}
}
}
Thank you very much for your consideration.
Joe
implemented a try/catch block like the following, how is it that my
application can still generate unhandled exceptions? (Message: An unhandled
exception has occurred in your application)
public class MainForm : System.Windows.Forms.Form
{
static void Main(string[] args)
{
try
{
MainForm mainForm = new MainForm();
Application.Run(mainForm);
}
catch (Exception)
{
}
}
}
Thank you very much for your consideration.
Joe