E
erin.sebastian
Hello Everyone,
Probably a really stupid question but i can't seem to figure it out.
So i have a form and when the x button is clicked i want a certain
method to run. The weird thing is that if i just write a console
message my code executes one time, if i place the method i want to run
in this code instead, it executes 40 times ... i don't get it ..what am
i doing wrong. I should say that i am using VS 2005.
Thanks in Advance!
if (CloseReason.UserClosing == e.CloseReason)
{
try
{
saveImages();
}
catch (Exception ex)
{
MessageBox.Show("Error attempting to save yor
images: exception is " + ex.ToString());
}
}
Probably a really stupid question but i can't seem to figure it out.
So i have a form and when the x button is clicked i want a certain
method to run. The weird thing is that if i just write a console
message my code executes one time, if i place the method i want to run
in this code instead, it executes 40 times ... i don't get it ..what am
i doing wrong. I should say that i am using VS 2005.
Thanks in Advance!
if (CloseReason.UserClosing == e.CloseReason)
{
try
{
saveImages();
}
catch (Exception ex)
{
MessageBox.Show("Error attempting to save yor
images: exception is " + ex.ToString());
}
}