❔ Panel scroll bar only vertical
Hey guys, small question: I got a form that has a panel inside. I am adding Buttons into that panel. I have a fixed size of the form and panel both Height = 600; I want a vertical scroll only no horizontal
I added the pictures how it looks like. I thought the items will be added vertically with the TopDown property set. What am I missing?
4 Replies
panel.FlowDirection = FlowDirection.TopDown; I changed this line to:
panel.FlowDirection = FlowDirection.LeftToRight;
and now I get the vertical Scrollbar and the items are added from top to bottom. I am super confused why it works like this??
a flow panel is not just a simple panel
are you sure you want to use that?
yes
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.