I have a UserControl Parent that contains Child controls. I would like my Parent control to execute automatically when it is too small for Child . To get Autoscroll, I set AutoScroll to True in my Parent and made sure that Child is big enough so that I can resize Parent to be smaller than it. My Parent contained inside a Form and bound to all four edges. The problem is that I cannot get the scroll bars to appear at runtime.
I cannot display a control without a form, of course, if it was not in Designer. In the Visual Studio 2008 designer, the Parent Autoscrol constructor is fine: I can resize the control, and whenever its Child partially hidden by the Parent edge, scroll bars appear. However, when I view the control in Form Designer or at run time, the scroll bars are not displayed, regardless of how I resize the Parent .
This seems like a mistake, but I feel more like I'm missing something obvious. Something about being a child of Form seems to be hampering AutoScroll.
source share