FlowLayoutPanel and ScrollPositions
-
Hello, I have a FlowLayoutPanel that I populate with my user controls. I have approximatelly 20 controls in the flowpanel. If I select a specific control programatically, and then scroll to it programatically using the statement:
this.flowPanel.ScrollControlIntoView (myControl)
However, the scrolling will stop the moment control is fully visible, and that makes control appear on the right side of the flowpanel. What I want to do, is for the flowpanel to scroll enough for the myControl to line up with the left edge of the flow panel. Is there a way about it, like setting certain properties? Thank you very much. -
Hello, I have a FlowLayoutPanel that I populate with my user controls. I have approximatelly 20 controls in the flowpanel. If I select a specific control programatically, and then scroll to it programatically using the statement:
this.flowPanel.ScrollControlIntoView (myControl)
However, the scrolling will stop the moment control is fully visible, and that makes control appear on the right side of the flowpanel. What I want to do, is for the flowpanel to scroll enough for the myControl to line up with the left edge of the flow panel. Is there a way about it, like setting certain properties? Thank you very much.Could you temporarily set the width of myControl to flowPanel.Width, call ScrollControlIntoView, then reset the width of myControl back to normal?
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Trekkie love The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
Could you temporarily set the width of myControl to flowPanel.Width, call ScrollControlIntoView, then reset the width of myControl back to normal?
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Trekkie love The apostle Paul, modernly speaking: Epistles of Paul Judah Himango