1
votes

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?

1
Form.ClientSize is the size excluding frame & title barAlex K.

1 Answers

4
votes

Really simple!

Size s = SystemInformation.CaptionButtonSize;