Results 1 to 3 of 3

Thread: Control the container 'area' of a custom container control

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    Control the container 'area' of a custom container control

    I'm working on a user container control that is collapsable and has a caption bar and takes on a similar appearance as a form. Currently at the control's host's designtime, the area to drop controls into the control is the control's bounds. I want to shrink it so the the border that i'm draing and the caption bar are not obscured by or obscuring the nonclient elements of my control. Basically, I want similar functionality to the tab control (I.E. You can't place child controls over the tab strip at the top). How do I do this? What method do I override or what base method do I call from the SizeChanged event?

  2. #2
    New Member
    Join Date
    May 2012
    Posts
    6

    Re: Control the container 'area' of a custom container control

    Hi Were you able to get a solution for this?

  3. #3
    Fanatic Member Delaney's Avatar
    Join Date
    Nov 2019
    Location
    Paris, France
    Posts
    846

    Re: Control the container 'area' of a custom container control

    the post is 15 years old and the OP didn't post anything since 2011... I have some doubt about getting any answer
    The best friend of any programmer is a search engine
    "Don't wish it was easier, wish you were better. Don't wish for less problems, wish for more skills. Don't wish for less challenges, wish for more wisdom" (J. Rohn)
    “They did not know it was impossible so they did it” (Mark Twain)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width