I don't personally know. It seems, though, if you are using managed code, and set your form to full trust (which you might not want to do) that you should be able to tap into that event somehow. Someone else will have to help you figure out how that would work.

Signature
Greg Collins [InfoPath MVP]
Visit http://www.BrainTrove.com
Visit http://www.InfoPathDev.com
Greg
Thanks for your reply. I thought about adding a close button but it's
obviously not the best solution.
Do you (or anyone) know if there is a close event in 2007?
Thanks
Tony
Tony Eley - 25 Apr 2006 10:47 GMT
I am using managed code and have the form set to full trust so can
anyone help me tap into this event please?
Thanks
Greg Collins [InfoPath MVP] - 25 Apr 2006 20:14 GMT
It might be helpful to also post this question in the C# and WindowsForms newsgroups as it seems to pertain more to those scenarios than specifically to InfoPath.
If you receive an answer, please post back here as this question has been raised numerous times, and I'm sure there are many who would love to know how to do this.

Signature
Greg Collins [InfoPath MVP]
Visit http://www.BrainTrove.com
Visit http://www.InfoPathDev.com
I am using managed code and have the form set to full trust so can
anyone help me tap into this event please?
Thanks