Peter Ackmann
Peter Ackmann

Reputation:

How to get the size of the drawing area of a Windows Form?

How does one get the size of the drawing area in a Windows Form?

The Size, Width and Height properties return it for the entire form, whereas I'm looking for the area marked in the linked diagram by the white arrows: https://i.sstatic.net/FQueF.png

Thanks!

Upvotes: 2

Views: 610

Answers (1)

Dave Markle
Dave Markle

Reputation: 97701

Look at the .ClientRectangle property. That has the dimensions you're looking for.

Upvotes: 4

Related Questions