xenapior's picture

How to disable min/max box of GameWindow

I've search the document but found no information about how to disable the min/max box of a GameWindow (os = windows 7 x64). Is it an OS-dependent feature so that an OS-neutral framework will not have direct support for this?
If so, should I modify the native window style with win32api? (brute force way!)


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
xenapior's picture

OK, I found the OpenTK way to do the work.
Simply setting the WindowBorder property of the GameWindow to Fixed can solve the problem.

the Fiddler's picture

Note that the window manager is ultimately the one that decides how to size your window. Your code should be able to cope with different sizes even if a specific one is preferred.