How do i make focus disappear on:
<Textbox Name="Textbox1" />
Or, if i can’t make focus go away where is it before anything is focused ?
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.
You can use FocusManager to set focus to something else. I’m not sure when you want to change the focus or where in your code you want to make the call from, but I put a call to FocusManager in the code behind of a form and set its focus to itself and it seems to work fine.
e.g. if you add this to your KeyUp event your textbox will lose focus when you press a