Hi Anoop,
Do you want to close the form with validations in Onload event??
thisApplication.XDocuments.Close( ) will not allow the form to be closed
with validations on.
One way is collect all errors and delete them with this method
XDocument.Errors.DeleteAll();
and then use
thisApplication.XDocuments.Close
Hope I understood you correctly.

Signature
Kalyan Reddy
Visit http://www.autonomysystems.com
> I have already tried thisApplication.XDocuments.Close and Window.Close()
>
[quoted text clipped - 18 lines]
> > > Thanks in advance.
> > > Anoop
Anoop - 02 Jun 2006 14:10 GMT
Kalyan,
I am not talking about form validations. I check for the user and want
to restrict for a particular user. So I need just a method to close the form
in onload event.
Anoop
> Hi Anoop,
>
[quoted text clipped - 31 lines]
> > > > Thanks in advance.
> > > > Anoop