The Form class, which inherits from the Control class, has a Controls
collection, so you can retrieve them recursively. This will work for most
controls (including forms), although for some controls it would be better to
use the Children property of the new ITreeDesigner interface of .NET 2.0,
but for this you need the designer, you can´t use Reflection.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
"Jon Turner" <jj*@mail.com> escribió en el mensaje
news:O$**************@TK2MSFTNGP15.phx.gbl...
My intention is to be able to open an assembly and for each form, list the
form's children's controls. Can someone
please tell me how this can be accomplished ? I am familiar with how to
get Methods/properties using reflection, but
seem to be in the dark about the form's children's controls.
Many Thanks in Advance