开发者

hide form when user clicks elsewhere

开发者 https://www.devze.com 2023-04-02 02:10 出处:网络
i have application with one form, which i developed in c#.I would like to hide the form when a user clicks somewhere else then on the form or on the notification开发者_高级运维 icon (in system tray).

i have application with one form, which i developed in c#. I would like to hide the form when a user clicks somewhere else then on the form or on the notification开发者_高级运维 icon (in system tray). How could i do that?


I am not 100% sure you can do it with the standard event exposed by Visual Studio in the designer but if you could attach to the DeActivate event, or form lost focus, then you can call form.Hide

0

精彩评论

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