Graph, Picture, PictureHyperLink, OLE, OLE Custom Control, StaticText, and StaticHyperLink controls
When the FocusRectangle property is enabled, a dotted rectangle (the focus rectangle) displays when the control has focus. If this property is not enabled, the focus rectangle does not appear.
To set the FocusRectangle property:
Select the Focus Rectangle check box on the General page of the control’s Properties view.
The FocusRectangle property takes a boolean value. The following example specifies that a focus rectangle will appear when the StaticText control has focus:
st_1.FocusRectangle = TRUE