I have an issue in which a link label on a windows form does not draw the
focus rectangle if you programmatically force it to have focus via the
Control.Focus() method.
To duplicate, create a new windows app, place a button and a link label on
the form. In the button click event, place the following code,
this.linkLabel1.Focus(). Run the app and press tab between the two controls
and you notice that the link label has the focus rectangle, but if you put
focus on the button and click the button, the focus rectangle is not drawn
on the link label even though it has focus.
I've tried several methods to force the drawing of the rectangle, including
the WM_SETFOCUS and VK_TAB api's without luck.
Any ideas on how to force the drawing of the focus rectangle? (I'm trying
to avoid using the drawrect myself).
Thanks in Advance!
Steve Bezner