When I click on a button it will keep selected what can I do to deselect the button after click? See the image bellow:
See Question&Answers more detail:osWhen I click on a button it will keep selected what can I do to deselect the button after click? See the image bellow:
See Question&Answers more detail:osprivate void btnStart_Click(object sender, EventArgs e)
{
btnStop.Focus(); //setting the focus on Stop Button
// ...your code
}
private void btnStart_Click(object sender, EventArgs e)
{
this.ActiveControl = btnStop; //setting the focus on Stop Button
// ...your code
}
private void btnStart_Click(object sender, EventArgs e)
{
Control p;
p = ((Button)sender).Parent;
p.SelectNextControl(ActiveControl, true, true, true, true);
// ...your code
}