开发者

Hide buttons on top form bar

开发者 https://www.devze.com 2023-02-20 02:48 出处:网络
Greetings, I have a simple winform application of which I want to remove the minimize, maximize and close buttons but I want to keep the top bar so people can keep moving the application.

Greetings,

I have a simple winform application of which I want to remove the minimize, maximize and close buttons but I want to keep the top bar so people can keep moving the application.

I've been searching for some hooks to do this but sadly I havn't found anythin开发者_如何学运维g yet. Does anyone know if this is possible ?


Simply set ControlBox to false:

ControlBox = false;

Make sure your form still has a title so that the title bar shows in full.


Set the ControlBox Property for the window to false.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号