I followed instructions from this page to insert controls to tableLayoutPanel. http://goo.gl/SVKf8D
I am using this code to try to add a dynamic picturebox and set it's source:
tableLayoutPanel1.Controls.Add(new PictureBox() { Image.FromFile(TableLayoutPanelTool.Properties.Resources.BaldGuyImage)}, 0, 0);
I cannot insert image source to picturebox this way.
What I need: A way to set the image to the Picturebox that I have added dynamically to the TableLayoutview
note:it is ok to give source directly.Something like source= C:/Projects/bin/debug