Sample Code Adding Image control to FlowLayoutPanel
Example Code to Dynamically add Picturebox to a FlowLayoutPanel.
PictureBox pBox = new PictureBox();
pBox.ImageLocation = "C:\\Images\\Collages\\Faces.jpg";
pBox.SizeMode = PictureBoxSizeMode.Zoom;
pBox.Location = new Point(0, 0);
pBox.Height = 50;
pBox.Width = 50;
flowLayoutPanel1.Controls.Add(pBox);
No comments:
Post a Comment