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
This is the compiler error:
http://msdn.microsoft.com/en-us/library/wydkhw2c(VS.71).aspx
The basic problem is that the MinimumSize member property returns a struct - which is a value type - and so is copied into a local temporary variable - and this prevents you from writing a value back to the underlying property.
To get around this, you need to assign to MinimumSize itself:
this.MinimumSize = new Size(800, 600);