I am having trouble setting the minimum size of my window in a C# application I am working on. I have tried this code in the form\'s constructor:
this.Minim
You need to assign directly to the MinimumSize property:
this.MinimumSize = new Size(800, 600);
Basically, the return value of the MinimumSize property is always a new struct object; the compiler doesn't let you assign to this temporary value (as stated in the error, it's not a variable).
This MSDN Social thread is most enlightening about the subject.