Windows Develop Bookmark and Share   
 index > Windows Forms General > Getting rid of the Focus Rectangle on a button
 

Getting rid of the Focus Rectangle on a button

Hi,

I've got images on my buttons. When I click on them, it displays the focus rectangle and sort of messes up the images. Any way to get rid of those rectangles?

I looked up the documentation and found stuff dealing with UICues including the ShowFocusCues property, but they seem to be read only.

Thanks
MigrationUser 1  Friday, June 27, 2003 12:49 AM
What happens if you derive your own button, override the ShowFocusCues property and always return False?
MigrationUser 1  Friday, June 27, 2003 1:28 AM
Thanks - that did the trick.
MigrationUser 1  Tuesday, July 01, 2003 1:46 AM

You can use google to search for other answers

Custom Search

More Threads

• TableLayoutPanel.Controls.Add(control, 1, -1)
• System.ArgumentOutOfRangeException when trying to assign .Text property of combobox
• Problem disposing DateTimePicker in own event
• Autosize of Label is not working
• the name of current active application
• SaveFileDialog throws an exception when setting RestoreDirectory = true
• Combobox - autocomplete ????
• start application from c# issue
• C# Drag & Drop not working with Vista
• Fullscreen form on a seperate screen