I am developing a software application that has a tab control in its main window. Each tab page can host a maximum of 4 child forms. Once more child form is added to the tab control, a new tab page is created to host this new child form and so on.
childForm.TopLevel = false;
tabControl1.SelectedTab.Controls.Add(childForm);
childForm.Show();
Currently, the problem is that when I click on any of the child forms inside the tab page, the child form does not get the focus. It seems that the focus is set onto the tab page itself rather than passed to the child form. This prevents me from highlighting text inside the child forms.
I have looked at MSDN and it seems that the method Focus() does not help in this case. Is there a way to achieve what I want to do?
Thanks