A
Amien Crombie
Hi
I have a Usercontrol (child) that is part of another usercontrol
(Parent). In my child usercontrol, I use a delegate to pass an event
with some data (a custom EventArgs class) to the parent usercontrol.
This parent usercontrol then creates a duplicate delegate that passes
this to my windows form.
This all works but maybe there is a better way of doing this ??
My parent usercontrol is nothing else than a container (FlowLayoutPanel)
for my child usercontrols.
When my app starts, it reads a database and creates child usercontrols
and places it on the parent usercontrol. This includes creating the
event handler coming from each child usercontrol.
Any advise would be appreciated.
Thanks
Amien.
Cape Town
www.tlabs.ac.za
I have a Usercontrol (child) that is part of another usercontrol
(Parent). In my child usercontrol, I use a delegate to pass an event
with some data (a custom EventArgs class) to the parent usercontrol.
This parent usercontrol then creates a duplicate delegate that passes
this to my windows form.
This all works but maybe there is a better way of doing this ??
My parent usercontrol is nothing else than a container (FlowLayoutPanel)
for my child usercontrols.
When my app starts, it reads a database and creates child usercontrols
and places it on the parent usercontrol. This includes creating the
event handler coming from each child usercontrol.
Any advise would be appreciated.
Thanks
Amien.
Cape Town
www.tlabs.ac.za