How to disable the minimize button in C#?

后端 未结 8 880
花落未央
花落未央 2020-12-06 13:33

In my application I need to temporarily gray out the minimize button of the main form. Any ideas how this can be achieved? I don\'t mind doing p/invokes to Win32 dlls.

8条回答
  •  生来不讨喜
    2020-12-06 13:58

    Don't. Don't mess with my windows. They are mine, not yours. It is my computer and if I want to minimize, I should be able to. I can't think of, and have never been given, a good reason for doing this.

提交回复
热议问题