Please provide the actual designer code you're using for the UI. At this point it sounds like WPF, XAML or MAUI but it isn't clear. Nevertheless giving us the designer code (please use the Inline Code
option so we can easily copy/paste it) so we can see how you have things configured. It would be even better if you could provide a link to a working example.
VerticalScroll.visible doesn't seem to be working on autoscroll
Hello,
My Flow layout panel has panels in it that stretch the entire flow panel, the problem is that it has autoscroll on(and I want to keep it on), and when there'ss enough panels to get a vertical scroll bar, the ends of the panels are cut out and it looks bad. I tried using this code to account for that
Container.Size = New Size(Form1.FlowLayoutPanel1.Width - Form1.FlowLayoutPanel1.Margin.Right * 3, 75) If Form1.FlowLayoutPanel1.VerticalScroll.Visible Then Container.Size = New Size((Form1.FlowLayoutPanel1.Width - Form1.FlowLayoutPanel1.Margin.Right * 3) - SystemInformation.VerticalScrollBarWidth, 75) End If
But VerticalScroll.Visible doesn't seem to be picking up autoscroll, any suggestions?
Thank you,
Connor Frayne
1 answer
Sort by: Most helpful
-
Michael Taylor 54,401 Reputation points
2024-07-12T20:29:37.8133333+00:00