Re: Calling default event handler for my base class

From: John Saunders (john.saunders)
Date: 02/11/04


Date: Wed, 11 Feb 2004 11:26:47 -0500


"NWx" <test@test.com> wrote in message
news:%23iaEivB8DHA.3380@tk2msftngp13.phx.gbl...
> Thank you, I noticed this later, by putting some breakpoints along calling
> chain.
>
> However, I noticed Page_Load is first called for Page itself, then for
> custom controls. Is there any way to force calling Page_load first for the
> parent control, and only after for the inherited control (and finally for
> the page)?
>

No, the order is unspecified. You cannot and should not depend on it.

-- 
John Saunders
John.Saunders at SurfControl.com


Relevant Pages

  • Re: When is Invoke() Really Required?
    ... then it is safe to call that method. ... in the context of the calling thread, now if the calling thread does not ... > Invoke, BeginInvoke, EndInvoke and CreateGraphics. ... Does this apply for absolutely every method or property in a control ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: MFC ActiveX Control in VC++
    ... >> your implementation that still crashes, and the calling ... but I do not know what a "typelib class" is. ... > with MFC ActiveX control, and I do not want to drop the control on to th form or Dialog. ...
    (microsoft.public.vc.language)
  • RE: Control Step Question
    ... the code it is calling requires it to have focus on the OnCurrent, ... Dim ctrl As Control ... Dim StatusNumber As Long ... Change Set ctrl to Set ctrl = FieldName after declaring it as a string and ...
    (microsoft.public.access.formscoding)
  • Re: when are they learned behaviors?
    ... You have control over your own actions. ... your first post was ever so helpful and friendly. ... I CHOOSE to read Jack. ... > calling someone a nigger, kike, or chink is racist. ...
    (rec.pets.dogs.behavior)
  • RE: Give textbox focus when form loads modeless
    ... need to switch focus from one control to the one you want whereas in 2003 you ... that code I sent you IS the calling macro. ... my workaround code is in the calling sub, ... focus to the textbox and this worked as well. ...
    (microsoft.public.word.vba.general)