How to determine if a control or one of it’s child controls has focus
C#, Component Development, Win Forms October 23rd, 2006Focus returns a boolean to indicate whether or not a control has focus or not, but when trying to paint your own focus rectangle in your control and you have allowed your controls scrollbars to accept focus, then the Focus property will return false.
Instead of using Focus, check the ContainsFocus property that returns true if the control or a child control has focus.
January 12th, 2007 at 11:15 pm
I tried and it didnt worked..
Can u mail the sample code as