Today , we will discuss about focus on Next Button after clicked previous button using C#.net
Declare Variable
Select "Tab Stop" and Change to False
Copy and Paste this below Code in your Previous Button Click Event:
IsBtnClicked = true;
Declare Variable
private static bool IsBtnClicked = false;
Go To Next button Property windowSelect "Tab Stop" and Change to False
Copy and Paste this below Code in your Previous Button Click Event:
IsBtnClicked = true;
if (IsBtnClicked)
{
button2.TabStop = true;
IsBtnClicked = false;
}
else
{
button2.TabStop = false;
IsBtnClicked = false;
}
{
button2.TabStop = true;
IsBtnClicked = false;
}
else
{
button2.TabStop = false;
IsBtnClicked = false;
}