[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
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.