c# - Check if a winform application lost focus to a different application -
c# - Check if a winform application lost focus to a different application -
i have application many kid forms, , when switch different application, of forms still remain on top (i using form.topmost
property).
i looking solution, , found partial answers here:
how observe when application loses focus?
c# form activated , deactivate events
but both didn't work me. form.deactivate
event fired when main form loses focus kid form. want check if application lost focus different application, can hide kid forms.
thanks
edit: switched form.topmost show(owner), @hans passant.
c# winforms show-hide
Comments
Post a Comment