Mário Correia Mário Correia - 1 year ago 80
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?

Answer Source

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 :

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download