I remember from a long time ago that this is possible but i forget the code to do it.

How do i create a control in code?

How would i make it so when a button is clicked it will create a new picture box at location 50, 50 with the resource file smile.bmp? I dont want to just make a already made picture box visible i want to create one.