开发者

c# Maximize, Minimize and Close buttons on form

开发者 https://www.devze.com 2023-01-17 13:58 出处:网络
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 on

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.


You can use PreProcessMessage to see the message on its' way to your form.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号