F
Franky
Threre is a Form containing a usercontrol
In the form's Load event it references a usercontrol property, say, zz
The first showdialog(formx) causes
1 usercontrol_load event
2 form_load event which causes zz as expected
the second showdialog(formx) causes
1 form_load event which causes zz as expected
2 usercontrol_load event
Note in the second situation zz ran before the Load which initializes
things.
I would like the usercontrol load event to run before any properties or
methods are executed. Is that possible to setup.
What are the sequences that form and usercontrol loads are run?
Do they always both run for each DialogShow?
What happens after the DialogShow exits? Something is left in memory, but
what? The Usercontrol? The Form? Parts of each?
The usercontrol contains a TreeView, is any of the treeview data preserved?
Thanks for any answers
In the form's Load event it references a usercontrol property, say, zz
The first showdialog(formx) causes
1 usercontrol_load event
2 form_load event which causes zz as expected
the second showdialog(formx) causes
1 form_load event which causes zz as expected
2 usercontrol_load event
Note in the second situation zz ran before the Load which initializes
things.
I would like the usercontrol load event to run before any properties or
methods are executed. Is that possible to setup.
What are the sequences that form and usercontrol loads are run?
Do they always both run for each DialogShow?
What happens after the DialogShow exits? Something is left in memory, but
what? The Usercontrol? The Form? Parts of each?
The usercontrol contains a TreeView, is any of the treeview data preserved?
Thanks for any answers