Search code examples
c#.netwinformsgroupbox

Select-Deselect images present in the Panel


Hello i am having groupbox which contain panel, in that panel i have added multiple images dynamically, i want to select and deselect that image thumbnails as per requirement, so please help me out my groupbox looks like as . enter image description here

how can i select or deselect multiple images from this... here is my code

 private void AddFacesToPictureBoxes(List<PictureBox> pictureBoxes)
        {
            foreach (var pic in pictureBoxes)
                this.pnlFacetbox.Controls.Add(pic);
                this.gbFacets.Controls.Clear();
                this.gbFacets.Controls.Add(pnlFacetbox);
        }

Solution

  • Winform datagrid has inbuilt feature of checkbox column,image column and in addition it can be easy scrollable.I hope it exactly your looking for

    enter image description here