title: controls with same name in different panels in C#
body: <p>In my form, I created two panels <i>panel1</i> and <i>panel2</i>, within each panel I created one button named <i>button1</i> and <i>button2</i> respectively.
  if I want to add event handler using,</p>
  
  <pre><code>this.button1.Click += buttonEvent;
  </code></pre>
  
  <p>is fine. But, when I use foreach for each controls in form, It is not detected.
  Whats the problem here?</p>
  
  <pre><code>public myForm1() 
  {
      InitializeComponent();
      foreach (Control c in this.Controls) 
      {
          TextBox tb = c as TextBox;
          if (tb != null)
          {  
              tb.TextChanged += textChanged;
          }
      }
  }
  </code></pre>
  
  <p>How can I access the control in each of my panel using <i>foreach</i>?</p>