Its a small difficult to find out which textbox user will be selected.
If you using any button event means following this way...
Set one TextBox Enter event into all TextBox Control (For ex: textbox1_Enter to call the same event to all TextBox Control)
In your Enter event to find out the TextBox name using the following code
TextBox txtName = (TextBox)sender;
string sName = txtName.Name;
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.
just use TextBox enter event to find out which textbox selected.
Try this way you can achieve your output.
Sravanthi.seeta, if this helps please login to Mark As Answer. | Alert Moderator