title: Map Property to User Control
body: <p>I have a <code>UserControl</code> and have added a Property to it. But i want the Property to be added to the <code>Properties Window</code> whenever my <code>UserControl</code> is added to a form.</p>
  
  <p>This is what i used to add the property</p>
  
  <pre><code>Image img;
  public Image SetImage 
  {
      get { return img; }
      set { img = value; }
  }
  </code></pre>
  
  <p>This works fine but the problem is that whenever a user wants to call this property, the user will have to call the class of the user control like</p>
  
  <pre><code>MyControl ctrl = new MyControl();
  ctrl.Image = Image.FromFile("/*Path to Image*/");
  </code></pre>
  
  <p>but this will change all that property for all the Controls that have been added to that form but what i need is to map it to the UserControl so that whenever the user want to call it, the user will call it like</p>
  
  <pre><code>MyControl1.Image = Image.FromFile("/*Path to Image*/");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>MyControl2.Image = Image.FromFile("/*Path to Image*/");
  </code></pre>
  
  <p>Pls how do i acheive this?</p>