Wednesday, March 04, 2009

Windows Form Resizing issue.

I recently tried out bring out a form which had a size 2x2 without any border or title bar. The problem i faced was whatever i do, the form always took up a default size evidently larger than the one i set.

The solution was simple and straightforward. Just put up the MinimumSize and Maximumsize values for the border. By default, due to the draggging and resizing you had done, the values would be now 0,0. Change the value to say 1,1 and you have your way