04 January 2013

Focus on Next Button after Clicked Previous Button Using C#.Net

            Today , we will discuss about focus on Next Button after clicked previous button using C#.net
Declare Variable
private static bool IsBtnClicked = false;
Go To Next button Property window
Select "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;
button2.TabStop = false;
IsBtnClicked = false;

No comments: