C
Chris Saunders
I wish to have a window whose width can be resized but not its height.
I tried this:
this.MaximumSize = new System.Drawing.Size(0, 300);
this.MinimumSize = new System.Drawing.Size(0, 300);
which according to the documentation on MaximumSize and MinimumSize should
accomplish what I want. The 0's are supposed to mean that only the system
limits
apply.
What is occurring is that the form appears with minimal width, the correct
height
and the form is not resizable in any direction.
Can anyone clear this up for me?
Regards
Chris Saunders
I tried this:
this.MaximumSize = new System.Drawing.Size(0, 300);
this.MinimumSize = new System.Drawing.Size(0, 300);
which according to the documentation on MaximumSize and MinimumSize should
accomplish what I want. The 0's are supposed to mean that only the system
limits
apply.
What is occurring is that the form appears with minimal width, the correct
height
and the form is not resizable in any direction.
Can anyone clear this up for me?
Regards
Chris Saunders