
27-02-2008, 15:12
|
|
|
|
חבר מתאריך: 18.11.07
הודעות: 41
|
|
|
דוגמה ל Image ברקע של הטופס:
קוד:
Image imgMR = Image.FromFile("C:\\MR.bmp");
this.BackgroundImage = imgMR;
אם אתה רוצה להשתמש בתמונה מתוך הresource:
קוד:
System.ComponentModel.ComponentResourceManager resources =
new System.ComponentModel.ComponentResourceManager(typ eof(Form1));
PictureBox pictureBox1 = new PictureBox();
pictureBox1.Location = new Point(10, 10);
pictureBox1.Size = new Size(20, 20);
pictureBox1.BorderStyle = BorderStyle.Fixed3D;
pictureBox1.Image = ((Image)(resources.GetObject("MR.bmp")));
this.Controls.Add(pictureBox1);
נערך לאחרונה ע"י M R בתאריך 27-02-2008 בשעה 15:28.
|