문제

I need to disable/remove the minimize and maximize buttons in window form. I don't know how to access the form from my OpenTK.GameWindow, any help is appreciated.

도움이 되었습니까?

해결책

This is deceptively easy:

WindowBorder = WindowBorder.Hidden;

GameWindow does not use WinForms, it p/invokes the underlying platform directly (performance!)

Edit: or do you mean keep the close button but remove minimize/maximize? The closest to this is:

WindowBorder = WindowBorder.Fixed;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top