1

I have a flowLayoutPanel with several User Controls in it as shown in the image below: enter image description here

The First User Control is the header in flowLayoutPanel with description about the User Controls below it, Now when User Controls populate the flowLayoutPanel and vertical scroll bar appears, then when I scroll down flowLayoutPanel then first 'User Control'(Header which contain details) also scroll down and details are not shown to user, I want the vertical scrolling to start from second User Control so that my Header will visible to user all time.

Adil Ahmed
  • 37
  • 4
  • 1
    FlowLayoutPanel has no such feature. You'll have to put the "header control" above the panel. Or use the kind of control that was made for this, like ListView or DataGridView. – Hans Passant May 03 '23 at 17:51

1 Answers1

0

FlowLayoutPanel has no such function for now, but you can create a new FlowLayoutPanel as Header. As follows:

enter image description here

Or use dategridview directly, its Header is suspended by default, as shown below

enter image description here

wenbingeng-MSFT
  • 1,546
  • 1
  • 1
  • 8
  • Yes you are right, I have to use one more `flowLayoutPanel` – Adil Ahmed May 04 '23 at 10:24
  • wenbingeng-MSFT can you guide me how you capture and add screen video in answer, So in future I can add it to my questions – Adil Ahmed May 04 '23 at 13:07
  • @AdilAhmed I'm using a software called ScreenToGif that takes a screenshot of my computer screen and generates a GIF. Just drag and drop the gif directly into your question to achieve the effect you want. – wenbingeng-MSFT May 05 '23 at 02:48