We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback
Platform : WinForms
|
Category : Controls

Why should I provide a Non-Client border to my Control derived class?

Providing a border in the non-client region of your control rather than in the ClientRectangle has very many advantages:
  • When you include a scrollbar in your control, the scrollbar will appear inside the border, rather than to the outside if you drew the border in the client area.
  • When you allow custom painting of the control, your user will not draw over the NC border.
  • Your own client painting code will be simplified in that you will not have to bother about taking the border into account while painting the client area.
  • The next faq will tell you how to include a non-client border.

    Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon