开发者

hide form when user clicks elsewhere

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜