focus ring for a control?

  • Thread starter Thread starter Hari
  • Start date Start date
H

Hari

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.
 
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/
 
Back
Top