Windows Develop Bookmark and Share   
 index > Windows Forms Designer > hot to turn on ShowFocusCues
 

hot to turn on ShowFocusCues

I am trying to set hot to turn on ShowFocusCues property to true to get dotted line on the button.
Can anybody guide how to set the property to true. As it is readonly property.


nilesh k
nilesh Kalyankar  Thursday, August 27, 2009 8:32 AM

Hi,

The default button has already shows focus cues. If you want to change this property, you need to create a custom control.

The following is a thread tells about how to set/change/remove focus style on a Button in C#. Hope this helps.

http://stackoverflow.com/questions/148729/how-to-set-change-remove-focus-style-on-a-button-in-c

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Thursday, September 03, 2009 7:07 AM
As Ling Wang suggested, your only option is to come up with a custom control that derives from button control. Override the ShowFocusCues property.


Thanks,
A.m.a.L
.Net Goodies
Remember to click "mark as answered" when you get a correct reply to your question
A.m.a.L - aditi.com - Think Product  Thursday, September 03, 2009 7:17 AM

Hi,

The default button has already shows focus cues. If you want to change this property, you need to create a custom control.

The following is a thread tells about how to set/change/remove focus style on a Button in C#. Hope this helps.

http://stackoverflow.com/questions/148729/how-to-set-change-remove-focus-style-on-a-button-in-c

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Thursday, September 03, 2009 7:07 AM
As Ling Wang suggested, your only option is to come up with a custom control that derives from button control. Override the ShowFocusCues property.


Thanks,
A.m.a.L
.Net Goodies
Remember to click "mark as answered" when you get a correct reply to your question
A.m.a.L - aditi.com - Think Product  Thursday, September 03, 2009 7:17 AM

You can use google to search for other answers

Custom Search

More Threads

• Regarding statusbar in Win32
• Supporting 2003 & 2005 InitializeComponent
• How to fill an object with a red backslash's pattern?
• Inherited controls and design view
• DataGrid Headers
• pls help: Resize control at runtime?
• VS2005 Beta 2 form designer problem: error while parsing EntityName
• user control used by multiple application
• About listview and treeview
• Controls and Generics?