all groups > dotnet compact framework > january 2007 >
You're in the

dotnet compact framework

group:

focus ring for a control?


focus ring for a control? Hari
1/30/2007 8:09:35 AM
dotnet compact framework:
Hi,

Is it possible to highlight a control with some sort of focus
ring, when it receives focus, just like the dashed border for the
text( on the control) displayed in normal windows forms. Plz help!


Thanks,

Hari.
Re: focus ring for a control? Fabien
1/30/2007 1:18:40 PM
Hi,

I think the only to do this is to create your own custom component
inherit from a panel for example. Then you override the OnFocus method
and call a method to draw a square around your control. You must also
override the OnPaint method and use a Boolean to indicate if the
control has received the focus and draw the square.
Hope this help you.

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/


[quoted text, click to view]

AddThis Social Bookmark Button