I'm trying to display a custom component i made inside a panel but when it renders the content is displayed outside of the panel box and there's no scrollbar.
In the designer i have this: http://i.stack.imgur.com/V99pG.jpg
- a panel
- an instance of myComponent inside the panel
- a button that calls a method on myComponent that adds some controls into it
When i run the application and press the button the following is displayed: http://i.stack.imgur.com/wlDnV.jpg
See that the controls added dynamically in myComponent get over the panel's bottom line instead of showing only the visible part of the component and a scrollbar.
Any ideas how to fix it? Thanks!
myComponentuses wrong layouting, please post the code of panel and myComponent. - Maxim Kachurovskiy