Access to MDIparent object control

  • Thread starter Thread starter pei_world
  • Start date Start date
P

pei_world

hi there,
as I said, I have a MDIparent and childforms.
Now I create a new class file which is not belong to childforms. My problem
is how can I access to the MDIparent's public control(ie:a label in parent
form) object without create an instance of the parent form.
 
You must pass a reference to the MDIparent instance to the instance of your
other class.
Your other class can then hold that reference as a field and use it whenever
you want (as long as the form instance is still valid).

-Rob Teixeira [MVP]
 
Back
Top