What triggers the centering action?
If it's done in the base class, sometimes you'll attempt to center a
panel which is not there.
If it starts in the derived class, then class a base class method,
passing a reference to the panel as a parameter.
Or, alternately, in the base class, search it's Controls collection for
the panel.
--
Truth,
James Curran
Home:
www.noveltheory.com Work:
www.njtheater.com
Blog:
www.honestillusion.com Day Job:
www.partsearch.com
(note new day job!)
TS said:
member of inherited class
I have a panel in the inherited class that i want to center in the form. I
have this panel in all the classes that inherit from base class. I
wanted
to
do the centering in the base class instead of on every inherited class.
i thought about making the panel on the base class, but i didn't want to
mess up my existing layout on the form becuase i was adding this panel after
the form was built and i had to add each control to the panel separately in
design mode to keep their same positions.
class
from
give