title: Maximize an UserControl without using a form
body: <p>My project built a panel with a pictureBox. This panel should be possible to maximize (for pictures displaying). I want to do that by creating a class like that:</p>
  
  <p><code>public partial class ImageDisplay : UserControl</code></p>
  
  <p>and in designer I add a picturebox and later do something with that.</p>
  
  <p>It's not working properly, coz I cannot maximize ImageDisplay class (while it inherits by UserControl). I tried to do that just by changing it on:
  <code>public partial class ImageDisplay : Form</code>
  and then change the form's properties.</p>
  
  <p>But I can't do that in that way, coz after I built my project, I use created <code>.dll</code> file in another program. And this program is working properly, when I use the class inheriting from UserControl. But when it inherits from the form, this program crushs.
  I don't know why that is working in that way, I just get this code yesterday, when I've never coded in C# before.</p>
  
  <p>So every hint or help or maybe good link would be helpful.</p>