I have a project with TabbedMdiHost and tabs with ToolBar, when I create come tabs switch between them and then click any button on ToolBar i get switched back to last tab.
Here I created a small project to reproduce issue
https://1drv.ms/u/s!AsrtdLXc2hes9xHDuZixiOx6nR3i
Steps to reproduce:
- Add some tabs
- Switch between tabs many times without clicking inside
- Click any button on ToolBar
- If tab did not switch back to last after click - try again, it is kinda random