Looch,
Have you taken a look at the Closing event on the Form class? If the
form isn't filled out the way you need it to be, you can cancel the
operation.
Also, you might want to look at the Validating event as well.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Hi All,
>
[quoted text clipped - 5 lines]
>
> Thanks in advance
Peter Duniho - 21 Sep 2007 19:36 GMT
> Have you taken a look at the Closing event on the Form class? If the
> form isn't filled out the way you need it to be, you can cancel the
> operation.
As of .NET 2.0 (I believe), the FormClosing event is the preferred event
to use.
> Also, you might want to look at the Validating event as well.
Agreed. Each control can raise a Validating event, and the handler for
that event can indicate the control isn't valid, preventing the form
from closing.
Pete