Hi Eric.
I have put together a small exmaple of what I'm trying to do.
I have put a new zip file
here
Overview
There is a control named crlContainer. It will contain instances of the
control crlMyLabel.
crlContainer has a sub AddLabel which accepts 1 parameter - sCaption.
Look in the form.load.
crlMyLabel has a label control on it, and has 1 property, 'Caption', which
sets the caption of the label. There is 1 event, Clicked, which is called when
the label is clicked.
Problem 1
I'm trying to dynamically add instances of the crlMyLabel to crlContainer
at runtime.
In the AddLabel sub in crlContainer, I do not see a reference to the custom
property 'Caption' - seem my comment there.
Problem 2
The click event does not fire in ctlExtender_ObjectEvent
I'm not even sure that I'm his the right way. Please ets me know what you think.
Thanks for all your patience.
Kevin
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people