>I'm trying to validate upon a user closing a form (clicking the close button).
>
>I am putting the code in the Destroy Method. How do I prevent the form from being destroyed if the validation fails?
>
>Thanks,
>
>Mitch
Put your code in the QueryUnload()
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer