Thanks, Curt!<br><br>That looks interesting; I found a pretty explicit article on how the &#39;Closing&#39; event works at:<br><br><a href="http://msdn.microsoft.com/en-us/library/ms748948.aspx">http://msdn.microsoft.com/en-us/library/ms748948.aspx</a><br>

<br>(about 1/2 way down the page).<br><br>It looks like an event handler similar to mine could be used to cancel the &#39;Closing&#39; event and preserve the window, but I haven&#39;t been able to determine how to attach the event handler to my window in IronPython. Would I be doing something like:<br>

<br>mywindow.Closing += myCloseHandler<br><br>to get the handler to catch the Closing event?<br>Thanks,<br>Ken<br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>Anything that talks about &quot;window messages&quot; or &quot;subclassing&quot; is pretty-much incompatible with WPF.</div>
<div> </div>
<div>What you really want to do is handle the Closing event on the WPF Window object. This will give you the opportunity to cancel.<br><br></div></blockquote><div><br> </div></div><br>