title: User Control with transparent background
body: <p>I've a simple user control that actually is just a panel, when I click in that panel, there will be a child user control added. that child is just another user control where I set <code>width = 150px</code> &amp; <code>height = 100px</code> and the background color to transparent. also it has a textbox in the center that is 100 x 100 px.</p>
  
  <p>this base structure will be a Node Based Interface in the future, where each box will have connection anchors and logic btn's or something like that in it.</p>
  
  <p>my problem is that if i click a few times in the panel and the added box overlapy another, the transparency wont take effect.</p>
  
  <p>here's a screenshot</p>
  
  <p><img src="https://i.stack.imgur.com/rY9hO.png" alt="enter image description here"></p>
  
  <p>how can i fix that issue ? is there a <code>allowTransparency</code> or something like that ?</p>
  
  <p>there is also an issue with the order of the drawing, the new added blocks are always behind the other one's.</p>
  
  <p>if you wish to see the code for this, let me know , but i don't think that there is anything relevant for this.</p>
  
  <p>also, if you know a better way to implement a node graph, please feel free to tell me.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>following code was the first thing I've tried before I've even thought of posting a question in StackOverFlow.</p>
  
  <pre><code>SetStyle(ControlStyles.SupportsTransparentBackColor, true);
  MakeTransparentControls(this);
  </code></pre>
  
  <p>so please don't take this as a duplicate question or posting that code as answer</p>