0

I am having a very odd issue using autoscroll in a flowlayoutpanel. There are controls that are programmatically added to the flowlayoutpanel, however, when scrolling to the bottom of the form/flowlayoutpanel, the last control gets cut off. Its almost as if the flowlayoutpanel extends futher and the scrollbar wont scroll down far enough.

Does anyone have any ideas / run into this problem before?

enter image description here

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Michael
  • 739
  • 12
  • 27
  • Show us the code that reproduces that problem. – LarsTech Sep 23 '15 at 20:54
  • It is likely you are adding the checkbox to a panel inside the `FlowLayoutPanel` rather than adding the control directly to the `FlowLayoutPanel`. – Loathing Sep 23 '15 at 20:58
  • @Loathing I believe I was adding the checkboxes directly to the flowlayoutpanel. In any case, I was required to change the UI design to use different controls. So for now this will no longer be an issue, at least until I inevitably come across something similar in the future. – Michael Sep 25 '15 at 12:23

3 Answers3

1

Are you sure all these controls are directly within the FlowLayoutPanel? If they are in a Panel, then this Panel is not big enough (in Height).

Matthieu
  • 94
  • 1
  • 9
  • I believe I was adding the checkboxes directly to the flowlayoutpanel. In any case, I was required to change the UI design to use different controls. So for now this will no longer be an issue. – Michael Sep 25 '15 at 12:24
  • Tried this and it didn't help. Answer is to change margins. – loganjones16 Mar 30 '18 at 22:03
1

I also had issues with FlowLayoutPanel cutting off the bottom of my controls. Here is what helped me for anyone else with a similar problem!

Ensure that the object getting cut off has the proper Margin values. Something like this will usually work:

this.Margin = new System.Windows.Forms.Padding(6, 7, 6, 20);
loganjones16
  • 492
  • 4
  • 19
-1

You can change the AutoScrollMargin to an higher height, so you can scroll down to the bottom.

FelixR
  • 1