Setting anchor stops resizing of Windows Form
I have a form with several controls. As soon as I add a "Bottom" anchor to a button on my form, I am no longer able to resize the form to be smaller on the vertical axis. I can still resize it to be bigger. The same thing happens in the horizontal direction once I add a "Right"开发者_运维百科 anchor to any of my visible controls. Any ideas as to why this is happening?
I have tried to repro your situation, but the result is opposite. I'm able to resize the form ! Hence, I have some suggestions for you:
Have you set the FormBorderStyle to Sizable yet?
Set the MinimumSize to 0,0.
Cheers.
The AutoSize member on the form was set to True. Set this to false.
精彩评论