title: How to get all control list of the Form in c#?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2735190/how-to-get-all-controls-of-win-form">how to get all controls of win form?</a>  </p>
  </blockquote>
  
  
  
  <p>i have a winform like below in picture.<br>
  <img src="https://i.stack.imgur.com/Rs01w.png" alt="enter image description here"><br>
  and i want a list of all the controls of the MainForm.<br>
  Like this:<br>
  MainForm<br>
  Button1<br>
  Panel1<br>
  TextBox1<br>
  Panel2<br>
  Button2<br>
  TextBox2  </p>