P
Phill. W
Is it possible to extend the Windows.Forms.Form.ControlCollection
class and override it's Add method?
I'm adding controls to a Form and want to [automatically] hook up
Event Handling for the Form to deal with on behalf of each Control.
I /thought/ the best way to do this would be to inherit from and
override the Add method on the Form.ControlCollection class and
put some AddHandler statements in there. This much I can do but the
bit I'm missing is how to get the Form to use /my/ ControlCollection
rather than the standard one.
Any suggestions?
TIA,
Phill W.
class and override it's Add method?
I'm adding controls to a Form and want to [automatically] hook up
Event Handling for the Form to deal with on behalf of each Control.
I /thought/ the best way to do this would be to inherit from and
override the Add method on the Form.ControlCollection class and
put some AddHandler statements in there. This much I can do but the
bit I'm missing is how to get the Form to use /my/ ControlCollection
rather than the standard one.
Any suggestions?
TIA,
Phill W.