Ah yes... in which case you need to check the "type" of the active control
and then dive into it to find *its* active control.
For instance there are times if you do MDIParent.ActiveControl you actually
get a reference to one of the MDIChildren.... and you not to code for this
possibility.
"guy" <gu*@discussions.microsoft.com> wrote in message
news:77**********************************@microsof t.com...
wrong.
i spent quite a time looking at help, ActiveControl does ***not *** return
the control with the focus. if i have a user control with a number of text
boxes on a form for example it returns the user contriol ***not*** the
text
box with focus
"CMM" wrote:
Or... to answer your question more specifically
Me.ActiveMdiChild.ActiveControl
"CMM" <cm*@nospam.com> wrote in message
news:e3**************@TK2MSFTNGP10.phx.gbl... > Um, Me.ActiveMdiChild
>
> ? You really should have checked the help files or intellisense before
> posting this.
>
> Watch out for ActivateMdiChild (Activate vs Active)... AutoComplete
> might
> have confused you.
>
>
> "guy" <gu*@discussions.microsoft.com> wrote in message
> news:7F**********************************@microsof t.com...
>> in an MDI app, how do i determine which MDI child contol currently has
>> the
>> focus? (from the MDI form)
>
>