Is there a way to leave the resolution of a C# Windows Form Application fixed?
<p>I want to fix the resolution of my main form, I can set the number of pixels using</p>

<pre><code> this.Height = 480;
 this.Width = 640;
</code></pre>

<p>But I want some way to make it constant, so that even if the frame is enlarged, the number of pixels will not change, but their size.</p>

<p>By setting the option <code>AutoSizeMode</code> to <code>GrowAndShrink</code> I can prevent re-sizing of the form by dragging the edges of the form, but when the maximize button is pressed, the form becomes big and adds new pixels. I want to allow the re-sizing of the form and putting it in maximized or fullscreen mode without changing the number of pixels in the form, or in other words, enlarging the size if the current pixels, instead of adding new pixels.</p>

<p>Is there a way too do it?</p>
