determine which control in a MDI-Form is currently activ/focused

Joined
Nov 25, 2005
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top