Windows Develop Bookmark and Share   
 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.]
Ajith R Nair  Thursday, May 07, 2009 12:20 PM

You can use google to search for other answers

Custom Search

More Threads

• Minimize all forms
• how to setfocus in VS .NET?
• Can you edit the path the designer uses for relative pathing for visual controls?
• Flexgrid not instantiated
• ListBox - SelectedItem
• Parent Property
• UserControl in a DataGridView / DataGridViewCell
• TabControl - Selecting Tab in Code problem
• How to add currency format and formula to a textbox
• showing checkbox for the bool values in the propertygrid