How to access parent form's control.
-
Say I have a few buttons on an MDIparent form. By pressing one of the buttons I activated an MDIchild from. At this point I would like to know what kind of buttons or controls the MDIparent form has. Any help would be much appreciated. :rolleyes:
-
Say I have a few buttons on an MDIparent form. By pressing one of the buttons I activated an MDIchild from. At this point I would like to know what kind of buttons or controls the MDIparent form has. Any help would be much appreciated. :rolleyes:
You shouldn't ever be able to tell, as they hsould not be public. But, if they are, then it's easy to find out. Just grab the Parent property, and cast it to the specific type of the form class.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert