Live Chat Icon For mobile
Live Chat Icon

How do I determine the width/height of the Non-Client area (like the border in a textbox) of a Control?

Platform: WinForms| Category: Controls

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.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.