I have a large application with multiple Windows Forms. I have code that
needs to be executed in the Load Event of every Form in the application and
was wondering if there was a way to add the code without having to go to
each form and copy and paste?
Is there a global location to override all the Load Events?
Thanks,
Chuck
If it's possible to derive all Forms from your own base Form, you
can put the common code into the (overridable) OnLoad method of
the base Form.
--
Armin
This way you'll reduce the amount of code repitition and if you ever need to
change the Form_Load code, you'll only have to do it in one place.
-Scott
"Charles A. Lackman" <Cha...@CreateItSoftware.net> wrote in message
news:%23tDZDbZ...@TK2MSFTNGP02.phx.gbl...