Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi in my windows appilcation iam placing some buttons .when we click on the button a black dotted rectangle boarder is appearing around the button.how I can disable the black dotted focus when button is clicked or focus
Posted
Comments
Richard MacCutchan 25-Jul-13 4:17am    
Create a custom button and handle all the events in your code.

1 solution

As much as I hate to do this (give you a link to another site), you would need to sub class the button control. See http://stackoverflow.com/questions/1700534/c-sharp-winform-remove-or-customize-the-focus-rectangle-for-buttons[^] for a discussion on how to do that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900