Everton Elvio Koser
Everton Elvio Koser

Reputation: 123

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 button sizes change between OS, and I dont want to fix a value... Any sugestion to get the size of the corner buttons?

Upvotes: 1

Views: 1327

Answers (1)

Cory Nelson
Cory Nelson

Reputation: 30031

Really simple!

Size s = SystemInformation.CaptionButtonSize;

Upvotes: 4

Related Questions