C# recursive get and display all controls including control containers

Please provide C# to recursive get and display all controls including control containers of a winform.
thuhueAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AndyAinscowFreelance programmer / ConsultantCommented:
EE is to ask for help, not to write code for free.
hint:  foreach, this.controls
0
thuhueAuthor Commented:
Please help by giving more infrmation. This is a seft study project. The result would be displayed using String Builder. I tried the above hint and stumbled over a misordered and incomplete display.
0
AndyAinscowFreelance programmer / ConsultantCommented:
Incomplete - please show what your code is (at a guess you aren't performing any recursion into containers to find those controls).
Misordered - you would need to perform any ordering yourself after you have all the controls, they will be returned in the order they are added to the controls collection of the form/container.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.