Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Size of a groupbox header?
posted

Is it possible to determine the size of the groupbox header?

I'm looking to handle click processing on a groupbox, but I only want to handle the click if the user clicks on the header (or the amount of space the header takes/location of the header).  Handling the click is not an issue, but I don't want to hard-code the size/location of the header in the app.

Parents
  • 469350
    Verified Answer
    Offline posted

     Hi Ron,

        Rather than trying to determine the size, it would probably be better to use UIElements and determine what element was clicked. You want to know when the user clicks into the header element. So you can use the ElementFromPoint method to determine the element that was clicked.

         Here's a link to some KB articles on ElementFromPoint:

         Knowledge Base Results - ElementFromPoint

        And this is a link to the Infragistics UIElementViewer which will let you see the elements in the control so you can ifentify which one you want.

         Introducing the Infragistics UIElementViewer Utility

Reply Children