Home » FAQ » WinForms » Controls » How do I determine the width/height of the Non-Client area (like the border in a textbox) of a Control?
One generic way for all Controls is to get the difference between the ClientRectangle’s width and the Control.Bounds’ width. That should give the border width (and in general the NC area width); similarly for height.
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with