hi,
i dont know if i am right in this forum; well this is my question
i have a MDI-Form. I want to find out, which control (Textbox, Textfield) currently has got the focus. these control may be in a TabControl or in another UserControl.
For example:
i have mdi-Form which has a child-form A which has a tabcontrol which has usercontrol which has a groupbox which has a button.
on the other side the same mdi-Form contains a child-form B which has a tabcontrol which has only a Button (so this tabcontrol doesnt have a usercontrol and a groupbox).
this code example below doest work properly:
myMDIForm.ActiveMdiChild.ActiveControl --> return tabControl (and not myButton)
thanks
i dont know if i am right in this forum; well this is my question
i have a MDI-Form. I want to find out, which control (Textbox, Textfield) currently has got the focus. these control may be in a TabControl or in another UserControl.
For example:
i have mdi-Form which has a child-form A which has a tabcontrol which has usercontrol which has a groupbox which has a button.
on the other side the same mdi-Form contains a child-form B which has a tabcontrol which has only a Button (so this tabcontrol doesnt have a usercontrol and a groupbox).
this code example below doest work properly:
myMDIForm.ActiveMdiChild.ActiveControl --> return tabControl (and not myButton)
thanks