2

I have a flowpanel that I'm dynamically adding usercontrols to. I want it to keep adding them and use a vertical scroll bar. It instead wraps them to the top and places a horizontal scroll bar. I'm sure I'm just missing something, but how do I get it to do vertical scrolling?

Aaron Smith
  • 3,332
  • 4
  • 29
  • 25

2 Answers2

7

I figured out what I did. I had the flow direction set to TopDown, it needed to be set to LeftRight.

Sometimes I feel like a moron.

Aaron Smith
  • 3,332
  • 4
  • 29
  • 25
  • To me, TopDown sounds like it would be what you want. Maybe flowdirection means something else to the designer of the flowpanel. – dotjoe Jan 07 '09 at 18:02
  • I agree with Joe, the name of that attribute is confusing – Bart Jan 15 '09 at 21:04
1

You have to enable scroll write this: flowLayoutPanel1.AutoScroll = true;

Frakcool
  • 10,915
  • 9
  • 50
  • 89