I have built an application that has a Notification Area Icon, which when clicked brings up a form that is designed for a single click, after which the user can then return to what they where doing before hand.
Currently, I am using this.Hide()
to remove the form (either when the desired event in the form occurs, or when the form is Deactivated
), but when I do, Windows sets the users focus to the Task Bar. How can I get it to return the Users focus to the Window they where on before clicking on the Notification Area Icon?