Eric Renken <(E-Mail Removed)> wrote:
> Actually once you set the DialogResult of a form you don't need to call
> this.Close(). Setting the DialoResult seems to take care of that from what
> I have seen.
Fortunately it's more than "seems to" (which would be a dodgy thing to
rely on, IMO). It's nicely documented:
(From the DialogResult property docs.)
<quote>
If the form is displayed as a dialog box, setting this property with a
value from the DialogResult enumeration sets the value of the dialog
box result for the form, hides the modal dialog box, and returns
control to the calling form
</quote>
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too