How to make CheckBox focus border appear when calling CheckBox.Focus()?
When the user tabs into a CheckBox to give it focus, a dotted border appears around the CheckBox to indicate that it has focus. When the CheckBox gets focused by code calling myCheckBox.Focus() , no such indicator appears (even though pressing the space bar toggles the state). How can I make the CheckBox focus border appear when I have programmatically focused the CheckBox? Gimno The border is intentionally only shown if you are navigating by the keyboard (Tab key). The MSDN page on this topic has further details: Focus visual styles act only when the focus action was initiated by the keyboard