how to check if window is on top through usercontrol
i would like to set focus on a button, when window in on top of all on the desktop.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Pretty vague. Focus stealing is something users dislike a lot and Windows actively prevents. Just implement the Activated event of the form and have the event handler set the focus.