This can not be done via script. I understand that there might be a way to do this if you are using Managed Code and set your form to Full Trust, though I don't personally know how to do it.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Hi there!
This is my first time, here!!! ;)
I'm trying to Deactivate Close Button in Infopath.
Is there some code that we can use????
I'm using Microsoft Script Editor.
Anybody can help me?
Regards,
(ZMike)
Miguel Carvalho - Portugal

Signature
ZMikePosted from - http://www.officehelp.in
ZMike - 14 Dec 2005 10:32 GMT
I already transform the form fully trusted....
But now, what?
Can i have permission to deactivate the close button?
How?
Thanks is advance....
Miguel Carvalho
Portuga