index > Windows Forms Designer > How to resize Custom Panel Control inside Parent Panel to Prevent Horizontal Scrolling
How to resize Custom Panel Control inside Parent Panel to Prevent Horizontal Scrolling
I have a custom panel control that I'm dropping into a parent panel and I want it the parent to scroll vertically only but the child panels are not being resized to accomodate the scrollbar vertically thus it is creating a horizontal scrollbar? I've tried every setting I can think of but can't get it to work. How do I make that custom control resize to accomidate the scrollbar? Thanks
Barkster Thursday, October 30, 2008 4:07 PM
Hi,
If you want to avoid the scrollbar for the parent, please set the autosize property as true and put the autosize mode growandshrink.Give it for both the controls.
-- Thanks
Ajith R
[Mark as Answer if it is Helpful.]