I mean, I want to create a new object in base of a exitisng obejct, this is my code, and will be useful like a example:
PictureBox Pic = new PíctureBox();
Pic.Image = Properties.Resources.Theme;
Pic Pic2 = new Pic();
I mean, I want to create a new object in base of a exitisng obejct, this is my code, and will be useful like a example:
PictureBox Pic = new PíctureBox();
Pic.Image = Properties.Resources.Theme;
Pic Pic2 = new Pic();
Think that's what you want:
PictureBox Pic = new PíctureBox();
Pic.Image = Properties.Resources.Theme;
PictureBox Pic2 = new PictureBox(Pic);
Just make a constructor to pass all the attributes to the new instance.