title: How to find Parent Control when the Nested Control is clicked?
body: <p><a href="https://i.stack.imgur.com/gnwal.jpg" rel="nofollow noreferrer">A screenshot of the user interface</a></p>
  
  <p>I am using WinForm. I am trying to get the name of the parent control to appear. Example - in the 1st UC on the left, when I click on any Date (the checkbox), it must output 'Durban'. If I click on any Date from the 2nd UC on the right, it must output 'Maputo' using a MessageBox or something. </p>
  
  <p>I am new to to this and I have tried every way possible or at least of what I know. </p>
  
  <p>note ~ both UC are made by me. the main control is the one that shows city name and month selection, the nested control is the date icon (which contains the date and checkbox). so when i click on the date icon, it must show which parent control it belongs to, as mentioned above, because the user can select 7 different cities and so we have to keep track of which date was selected for which city.</p>
  
  <p>edit -
  this is what I tried, along with a few other Controls.OtherMethods to see if something might work. I have also attached a response that I get once I click the Date Icon </p>
  
  <pre><code>private void DateIconPanel_MouseClick(object sender, MouseEventArgs e)
      {
          MessageBox.Show("This date belongs to - " + DateCheckBox.Controls.Owner);
  
      }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Zq305.jpg" rel="nofollow noreferrer">This is the response I get back after clicking the Date Icon</a></p>