Closing event executed twice

  • Thread starter Thread starter Lcubed
  • Start date Start date
L

Lcubed

Using .NET CF 2.0 and C#, I inadvertently discovered that the closing
event is executing twice for my forms.
Does anyone know what would cause this and/or how to stop it? Thanks
for any suggestions!
 
Yep. That's it. Just couldn't figure out how until I discovered that
setting the DialogResult also closes the form.

so doing something like this:

this.DialogResult = DialogResult.OK;
this.Close();

Sends the close twice. Interesting.

Thanks!
 
Back
Top