Patrick/Greg - I'm stuck with this problem now myself, and I'm a bit confused by your answers.
Patrick wrote: "This was one of the best additions to 2007"
Greg wrote: "there is no way to capture such clicks to perform anything when they happen"
I haven't been able to find anything that handles a user clicking on the X. I've added some code in the _Shutdown event handler to see if the form isDirty, but the code bombs out. It's weird - it's as if the form is closed, yet the code is still allowed run.
Is there a workaround or is this the way it is?
Thanks,
Joe