Hello,
I have a tabcontrol on which I am hosting forms under tab pages. There are controls on the form such as button and textboxes.
Lets assume there are 2 tab pages opened in tab control.
Also lets say there are 4 controls on a form in tab-page-1 and 4 controls on form in tab-page-2.
User is at tab-page-1 and the focus is on Control-3. Now user switches to tab-page-2 and enters some inputs in control 1 and focuses on control 2.
Now, user switches to tab-page-1. Remember, on tab-page-1, focus was on Control-3. But, as soon as switching is done, focus re-shifts to Control-1 on tab-page-1.
Also, if now you switch back to tab-page-2 where focus was at control-2, the focus is now at control-1.
I want to remain the focus at control where user left while switching between tabs.
Any helps and suggestion is deeply accepted.
Thank you!
What I have tried:
I tried handling various events of tab-control as well as tab-pages and form contained within such as LostFocus, Deselecting, Deselected, Selecting, Selected, Leave, Enter and more but none works.
All events fire post focus lost.
EDIT frim Chill60. I've given the OP the solution but they're not convinced. Bumping this to see if anyone has a better idea