FlowLayoutPanel user control collection


  • Hi,

    I created a user control which shows the thumbnail image from the folder. The code loops through the folder files and creates a user control dynamically and will be adding it to the FlowLayoutPanel. On the mouse click of the usercontrol the actual image of thumbnail will be shown in the picturebox on the right pane of the form. I added two buttons to navigate through these controls like previous and next. How can I loop though the FlowLayoutPanel controls and find the position for these buttons to make it work? Please let me know.

    Friday, July 24, 2009 1:26 PM


  • foreach (Control control in myFlowLayoutPanel.Controls)
    • Marked as answer by anate Friday, July 24, 2009 5:31 PM
    Friday, July 24, 2009 3:42 PM

All replies