Reputation:
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
Reputation: 97701
Look at the .ClientRectangle property. That has the dimensions you're looking for.
Upvotes: 4