Steve said:
Hi,
Have a look at:
http://msdn.microsoft.com/library/d...rmsFormClassOnClosingTopic.aspCancelEventArgs has a member called Cancel you can set to true. I don'tthink there's any direct handler you can attach to the 'X'.Steve"Ioannis Vranos" <
[email protected]> wrote in messagenews:%
[email protected]...> Is there any way to make a form *not closing* when its X on theupper-right is clicked?>> Is there any event for handling clicks on the X (e.g. to performadditional actions)?
A useful comment first. Your client apparently doesn't wrap a message when it sends it so
you had better press enter yourself so as to make it not appearing in only one long line.
Thanks for the link. However it doesn't load anything:
"Page Cannot Be Found
We apologize for the inconvenience, but the page you are seeking cannot be found in this
location.
If you are looking for a particular document, try the table of contents on the left or
look in one of the following areas:
* For content pertaining to a specific product or technology, try the MSDN Site Map.
* For Web Workshop content that has been migrated into the MSDN Library, try either
the Internet Development Entry Page or the Internet Development Index."
I also checked Form class and found no Cancel member of it.