Hi,
I try to change tho color of the focus rectangle/focus cues of buttons or controls.
Or if this it not possible, to disable the focus rectangle/cues.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
VS_2005; C# SmartDevice Windows CE 5.0 Appllication

Scott LysleRank #49 · 31K reputationPosted Apr 26, 2008, 3:55 AM EDT
This is not immediately under you control since it is in an operating system function; you can control it through User32 if you want to go that route. An easier way to go is to take the buttons out of the tab order (tabstop = false) and then on the control's click event, push the focus to something that does not show focus (like a group box):
private void button1_Click(object sender, EventArgs e) { groupBox1.Focus(); }