Hi,
Its a small difficult to find out which textbox user will be selected.
If you using any button event means following this way...
Step 1: Set one TextBox Enter event into all TextBox Control (For ex: textbox1_Enter to call the same event to all TextBox Control)
Step 2: In your Enter event to find out the TextBox name using the following code
TextBox txtName = (TextBox)sender;
string sName = txtName.Name;
Step 3: Now in your Button Event to get the String name(
Note: sName declare in global) to check the condition easily to find out which textbox user selected last.
else
just use TextBox enter event to find out which textbox selected.
Try this way you can achieve your output.
Cheers :)
Thanks,
T.Saravanan
Sravanthi.seeta, if this helps please login to Mark As Answer. | Alert Moderator