简体   繁体   中英

c# Maximize, Minimize and Close buttons on form

Hi Is there any way to find out if the close button (x button on form) was clicked. However without involving FormClosing and FormClosed events ?

Without those Events? That's a tough one...no, I don't think so.

I mean, you hook yourself into the message pump of the form to figure out if those actions were invoked, but seems like a little overkill to me.

您可以使用PreProcessMessage来查看表单中的消息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM