Wednesday, December 3, 2008

Windows Forms Prevent Resize .Net

I was going crazy yesterday trying to figure out how to prevent my form window from being resized. It seemed like it should be a simple variable form.isResizable = False. But I couldn't find that anywhere. After some digging I figured it out. I had to set the border style.

Ex:
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.FixedSingle

That worked like a charm!