简体   繁体   中英

C# How to get the size of the form border buttons [Minimize/Maximize/Close]

I want to set the minimum size of my forms programatically, to do that, I measure:

  • The left icon of the form; [Ok]
  • The title of the form; [Ok]
  • The size of the right buttons (Minimize/Maximize/Close) [Problem]

The button sizes change between OS, and I dont want to fix a value... Any sugestion to get the size of the corner buttons?

真的很简单!

Size s = SystemInformation.CaptionButtonSize;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM