Re: currentFocus

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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)
>> >
>> >
>>
>>
>>


.



Relevant Pages

  • Re: Public variable not seen by all controls on a Page
    ... User Control, so you must reference it through the User Control. ... Also note that you have the property declared as "quickAdd" but you are ... Is there a place in the page where I can declare a variable (maybe ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Public variable not seen by all controls on a Page
    ... It's still a property of the User Control, so you must reference it through the User Control. ... Also note that you have the property declared as "quickAdd" but you are referencing "quickadd". ... I make reference to the variable and of course the compiler tells me it is not declared, even though the Control is registered and is part of the ASPX page. ... Is there a place in the page where I can declare a variable (maybe using ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Run-time error 91: Object variable or With block variable no
    ... In the offending project referenced by the two projects that get ... where comboOutput is a regular VB combobox control in the user control. ... offending reference is the comboOutput.ListIndex, ... >>I've loaded the vbp projects into VB one by one and compiled them. ...
    (microsoft.public.vb.general.discussion)
  • Re: Passing and caching references
    ... >reference to that user control to a remote server that will handle its ... I am successfully passing a reference to a previously created ... I am able to manipulate the user control from the server perfectly. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Passing and caching references
    ... > reference to that user control to a remote server that will handle its ... I am successfully passing a reference to a previously created ... and receiving it on the server side. ... I am able to manipulate the user control from the server perfectly. ...
    (microsoft.public.dotnet.framework.remoting)