Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
AutoResize components of a WinGridBagLayoutPanel
posted

Hi,

I'm currently encounterring a little problem with UltraGridBagLayoutPanel.

I have set my GridBagLayoutPanel with AutoScroll Off and AutoSize False. I have for controls in this panel, and three of them are UserControls.

I've tried every property I found dealing with Sizing and Scrollable, but no way to make inner controls scrollable when their size is too small after downsizing the whole form.

I would like the elements of the panel to be scrollable when I downsize the form.

My usercontrols are set on AutoSize False, AutoScroll True ...

 

Please help !

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I'm afraid I do not understand what you mean. Are you talking about scrolling the GridBagLayoutPanel? Or scrolling your UserControl?

    If it's the GridBagLayoutPanel, then obviously you would not want to turn off AutoScroll.

    If it's the UserControl, then the GridBagLayoutPanel really has nothing do with it. The GridBagLayoutPanel will position and size the controls within it, but it doesn't have any control over the scrolling. Usually, if a control has AutoScroll set and one of it's child controls is outside the viewable area, it will turn on it's scrollbars. If that's not happening, then something is wrong on the UserControl. If you place your UserControl on the form and make it smaller, does it scroll? It does not make any difference what the UserControl is contained by, only it's size and it's contents matters.

     

Reply Children