Mário Correia Mário Correia - 10 months ago 52
C# Question

Setting Focus on another control on button click

When I click on a button it will keep selected what can I do to deselect the button after click? See the image bellow:

Button start is selected how to remove the selection after click?


You need some other focusable control to move the focus to like your StopButton.

you can set btnStop.Focus () ;

You can also set the forms activecontrol property to null like

 this.ActiveControl = null;

Or using Tab order after set up order :