Hello,
This is the first time I've attempted creating controls at runtime, and I'm not sure why the following code isn't working;
private void Popup_Load(object sender, EventArgs e)
{
Panel panel2 = new Panel();
panel2.Size = new Size(1280, 720);
panel2.Location = new Point(20, 20);
panel2.BackColor = Color.Red;
this.Size = new Size(1280, 720);
this.Controls.Add(panel2);
}
I'm also trying to draw a string to the screen, but figured that wasn't working for what's probably the same reason as why the above code isn't working.
Any help is appreciated,
Thanks.