Sign in to follow this  

Non-Resizable

This topic is 4280 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I make my Form non-resizable? or do I just have to resize it to the size I want every frame? PS.Dang it I did it again. I put this in the DirectX forum. Sorry, move it if you need to.

Share this post


Link to post
Share on other sites
The code is the following (assuming you're using C# for forms):
this.FormBorderstyle = FormBorderstyle.FixedSingle;

It could be placed in the form's constructor. Hope that helps.

Share this post


Link to post
Share on other sites
Quote:
Original post by Grantyt3
Yep, that works. What about non-maximizable? Like, make the maximize button on the window disappear?


this.MaximizeBox = false;

You can also set all these things in the form designer.

Share this post


Link to post
Share on other sites

This topic is 4280 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this