Mário Correia Mário Correia - 2 months ago 6x
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 :