Results 1 to 2 of 2

Thread: [RESOLVED] Control initialisation order wrong when loading form with user control

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Location
    England
    Posts
    9

    Resolved [RESOLVED] Control initialisation order wrong when loading form with user control

    When I load a form with a user control the order of initialisation is supposed to be:-
    Initialise
    readproperties
    resize 1
    (according to 'Creating an activex control' > 'Life and times of a UserControl Object' in help)

    but it is actually being carried out in the following order:-

    Initialise
    resize 1
    readproperties

    as displayed in the immediate window. This means that any code in resize that needs to use recovered properties cannot do so.

    Can anyone explain why this happens. and what to do about it?

    Thanks in advance
    Last edited by B Anderson; Feb 23rd, 2005 at 07:23 AM.

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Control initialisation order wrong when loading form with user control

    You may be using debug.print to display the functions, yes?

    Remember that things will behave differently in the IDE than in compiled code, esp ActiveX Controls.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width