my main method like these:
static void Main()
{
throw new Exception("dsfs");
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new ImageSettings());
}
and when debug,it will be stop and tips like the following:
but when i try to throw a exception in form load method like these:
private void ImageSettings_Load(object sender, EventArgs e)
{
throw new Exception("sdfds");
...
}
visual studio won't stop and tip, it will directly exit the program. so how can i set the visual studio and let it also stop a unhandled exception in form lifecycle method ? (and handled exception i do not want to stop and break)
thanks in advance.