How can I set focus to a particular control in a container whenever it it first gets poped up.
However after the user has clicked in some other control I want focus to go to the control they last clicked in if the window gets deactivated and activated.

