How do i lock the form size? so that it wont get maximized
Printable View
How do i lock the form size? so that it wont get maximized
1. Set the form's MaximizeBox = false to disable the maximize button
2. Handle the form's resize event and check the windowstate. If its windowstate = windowstate.maximized then change it back to normal.
Well, there are a couple ways to do it, you can set a maximum size and remove the maximize button or you can make a fixed form. Check out the form properties (MaximumSize, FormBorderStyle and MaximizeBox)
thanks guys