TAB issue in MDI form
-
Hi All, I am using MDI form, The first 20% of the form am displaying Treeview control and in the rest of the portion am displaying a mdiChild form. The mdiChild form has got few UI controls on which tab order is set. Now the issues is, when we hit on tab, it revolves within the child form. How can i make it to go to treeview control once the last control on the child form is focus? ie. on being on the last control and hit tab, the focus should go to the treeview. Any help is highly appreciated. Thanks in advance for any guidance and suggestion Regards Kais
-
Hi All, I am using MDI form, The first 20% of the form am displaying Treeview control and in the rest of the portion am displaying a mdiChild form. The mdiChild form has got few UI controls on which tab order is set. Now the issues is, when we hit on tab, it revolves within the child form. How can i make it to go to treeview control once the last control on the child form is focus? ie. on being on the last control and hit tab, the focus should go to the treeview. Any help is highly appreciated. Thanks in advance for any guidance and suggestion Regards Kais
Hello In that last control, handle the KeyUp event
private void MyLastControl_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.Tab)
MyTreeView.Focus(); //Needs .Net 2.0
}Regards:rose: