Jump to content
  • Advertisement
Sign in to follow this  
Grantyt3

Non-Resizable

This topic is 4494 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!