When the Image\'s Source property is set the following way, the picture is taken from /Images/down.png.
/Images/down.png
How would I do the same thing programmatically?
try this
PictureBox picture = new PictureBox { Name = "pictureBox", Size = new Size(100, 50), Location = new Point(14, 17), Image = Image.FromFile(@"c:\Images\test.jpg"), SizeMode = PictureBoxSizeMode.CenterImage }; p.Controls.Add(picture);