In keyboard navigation, when a button is selected, it has a dashed border. How to change its color?
Share
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.
I believe what you are looking for is the
FocusVisualStyle. If you set this to null, you can hide the dashed border. In your case, you want to change the color. What you would do would be to create a new style and apply it to theFocusVisualStyle.Here is an MSDN article that shows you how to do this:
http://msdn.microsoft.com/en-us/library/ms744790.aspx
The basic code they list is as follows: