I don't understand why this is not displaying a new PictureBox to the form:
private void Form1_Load(object sender, EventArgs e)
{
generateTable();
}
public void generateTable()
{
//setting up the background tiles
PictureBox setup = new PictureBox();
setup.Width = 100;
setup.Height = 100;
setup.Location = new Point(100,100);
setup.Image = new Bitmap(Application.StartupPath+@"\BlankArea.png");
setup.Visible = true;
this.Controls.Add(setup);
}
It does find the image (tested with another picturebox).