Quantcast
Channel: C#nedir?com Forum
Viewing all articles
Browse latest Browse all 613

C# : kod ile başka forma picturebox oluşturma

$
0
0
Author: berkaysefer
Subject: kod ile başka forma picturebox oluşturma
Posted: 09 Temmuz 2017 at 22:06

PictureBox picture = new PictureBox();
                picture.SetBounds(80, 80, 40, 40);
                this.Controls.Add(picture);
                picture.Image = Image.FromFile("C:\\solider.png");
                picture.SizeMode = PictureBoxSizeMode.StretchImage;

bu kod ile Picture box oluşturabiliyorum. Peki başka bi formda nasıl oluşturabilirim.
Mesela bu form1, form2 de picturebox oluşturmak istiyorum

Viewing all articles
Browse latest Browse all 613

Trending Articles