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 !
lepierrot said:No what I meant here is that I filled each user control with a GroupBox, ok it was not very clear, I give it to you!
That was perfectly clear. :)
lepierrot said: Anyway, thank you for your tip because it actually worked very well! I've added a panel which filled each group box of each UserControl (GroupBox is filled to the UserControl too), and put this panel on Scrollable. It works ! You rock !
Anyway, thank you for your tip because it actually worked very well! I've added a panel which filled each group box of each UserControl (GroupBox is filled to the UserControl too), and put this panel on Scrollable. It works !
You rock !
Glad you got it working.
Mike Saltzman"]I think this might be where the confusion is. A GroupBox is not a UserControl. What you have here is a GroupBox in a UserControl.
No what I meant here is that I filled each user control with a GroupBox, ok it was not very clear, I give it to you!
Hi Peirre,
lepierrot said:Each GroupBox is a UserControl,
I think this might be where the confusion is. A GroupBox is not a UserControl. What you have here is a GroupBox in a UserControl.
I think what you want to happen here is that the controls inside the GroupBox are are in a scrollable area. But those control are not in the UserControl directly, they are in the GroupBox. So setting the UserControl to scrollable will have no effect. You need to put those controls into a scrollable container directly. So it sounds to me like maybe you need to fill the GroupBox with a scrollable panel control and put your controls inside the panel rather that directly into the GroupBox.
I think there definitely something I don't understand !
Here is my application:
And the free space under the ribbon is filled with a GridBagLayoutPanel.
Each GroupBox is a UserControl, except the CreateAccount Button.
The application, as it is displayed here, is in its normal size, there is nothing to notice.
Below is an example when I make the form shorter:
Here you can obviously see that my GroupBoxes (user control finally) are overlapping. I would like scrollbars to appear in each in order to keep displaying the entire information.
Or maybe this much more simple to prevent user from down-sizing under a certain size?
Thank you for your time anyway.
PS: When I downsize more again, event the ribbon is hidden by the panel..
Pierre
I'm afraid you lost me. You mean scrollable user controls?
Yes, of course you can create a scrollable user control. But you can't then fill that control with another control. The scrollable control has to contain a controls that are, or at least can be, outside it's own bounds.
By the way, none of this is relate to the WinGridBagLayoutPanel. You might want to check out Microsoft's documentation ofr forums. Perhaps that have some samples or tutorials on this that you can use.