Re: currentFocus
- From: "CMM" <cmm@xxxxxxxxxx>
- Date: Tue, 31 Jan 2006 13:34:20 -0500
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" <guy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:775C682F-3E97-4659-9E6A-77766F78E02D@xxxxxxxxxxxxxxxx
> 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" <cmm@xxxxxxxxxx> wrote in message
>> news:e3eUgAlJGHA.1132@xxxxxxxxxxxxxxxxxxxxxxx
>> > 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" <guy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> > news:7FF938A1-F91C-40BE-AF0A-3DAFD549ECAB@xxxxxxxxxxxxxxxx
>> >> in an MDI app, how do i determine which MDI child contol currently has
>> >> the
>> >> focus? (from the MDI form)
>> >
>> >
>>
>>
>>
.
- References:
- currentFocus
- From: guy
- Re: currentFocus
- From: CMM
- Re: currentFocus
- From: CMM
- Re: currentFocus
- From: guy
- currentFocus
- Prev by Date: Re: VB2005 pro Graphics
- Next by Date: Re: I finally did it-- hungarian notation
- Previous by thread: Re: currentFocus
- Next by thread: Re: currentFocus
- Index(es):
Relevant Pages
|