public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
CreateMap();
}
public void CreateMap()
{
PictureBox PC1 = new PictureBox();
PC1.ImageLocation = @"C:\Users\source\repos\Proj\Blue.jpg";
PC1.Size = new Size(5220, 5022);
PC1.BackColor = Color.Red;
PC1.Location = new Point(20, 20);
PC1.SizeMode = PictureBoxSizeMode.Zoom;
PC1.BringToFront();
}
}