title: True Transparent Picturebox in VS2010
body: <p>In my WinForm Application, I am needing to layer some images. However, I'm having trouble getting a transparent control to place the image in.  I have done some research and came up with the following class:</p>
  
  <pre><code>public class TransparentPicture : PictureBox
  {
      protected override CreateParams CreateParams
      {
          get
          {
              CreateParams cp = base.CreateParams;
              cp.ExStyle |= 0x20;
              return cp;
          }
      }
  
      protected override void OnPaintBackground(PaintEventArgs e)
      {
          // do nothing
      }
  
      protected override void OnMove(EventArgs e)
      {
          RecreateHandle();
      }
  
  }
  </code></pre>
  
  <p>This seems to work fine until I close Visual Studios and reopen the Solution.  Then my controls all disappear in the designer.  They show when I run the program, but I need them to show in designer too where I can continue to design my application.</p>
  
  <p>I know this isn't everything I need to do, because these controls are always causing my program to freeze up for a few seconds and stuff.</p>
  
  <p>So my question is..does anybody know where I can find code for a transparent control, or how to fix the one I've thrown together?</p>