using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace Test { public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.PictureBox pictureBox2; private System.Windows.Forms.PictureBox pictureBox3; private System.Windows.Forms.PictureBox pictureBox4; private System.Windows.Forms.PictureBox pictureBox5; private System.Windows.Forms.PictureBox pictureBox6; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label6; private System.ComponentModel.Container components = null; public Form1() { InitializeComponent(); pictureBox1.Image = Image.FromFile("test2.bmp"); pictureBox2.Image = Image.FromFile("test2.bmp"); pictureBox3.Image = Image.FromFile("test2.bmp"); pictureBox4.Image = Image.FromFile("test2.bmp"); pictureBox5.Image = Image.FromFile("test2.bmp"); pictureBox6.Image = Image.FromFile("test2.bmp"); } #region Windows Form Designer generated code /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.pictureBox3 = new System.Windows.Forms.PictureBox(); this.pictureBox4 = new System.Windows.Forms.PictureBox(); this.pictureBox5 = new System.Windows.Forms.PictureBox(); this.pictureBox6 = new System.Windows.Forms.PictureBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // pictureBox1 // this.pictureBox1.BackColor = System.Drawing.SystemColors.Control; this.pictureBox1.Location = new System.Drawing.Point(16, 48); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(164, 164); this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; // // pictureBox2 // this.pictureBox2.BackColor = System.Drawing.SystemColors.Control; this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBox2.Location = new System.Drawing.Point(192, 48); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(164, 164); this.pictureBox2.TabIndex = 1; this.pictureBox2.TabStop = false; // // pictureBox3 // this.pictureBox3.BackColor = System.Drawing.SystemColors.Control; this.pictureBox3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.pictureBox3.Location = new System.Drawing.Point(368, 48); this.pictureBox3.Name = "pictureBox3"; this.pictureBox3.Size = new System.Drawing.Size(164, 164); this.pictureBox3.TabIndex = 2; this.pictureBox3.TabStop = false; // // pictureBox4 // this.pictureBox4.BackColor = System.Drawing.SystemColors.Control; this.pictureBox4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.pictureBox4.Location = new System.Drawing.Point(16, 248); this.pictureBox4.Name = "pictureBox4"; this.pictureBox4.Size = new System.Drawing.Size(164, 164); this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox4.TabIndex = 3; this.pictureBox4.TabStop = false; // // pictureBox5 // this.pictureBox5.BackColor = System.Drawing.SystemColors.Control; this.pictureBox5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.pictureBox5.Location = new System.Drawing.Point(192, 248); this.pictureBox5.Name = "pictureBox5"; this.pictureBox5.Size = new System.Drawing.Size(164, 164); this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.pictureBox5.TabIndex = 4; this.pictureBox5.TabStop = false; // // pictureBox6 // this.pictureBox6.BackColor = System.Drawing.SystemColors.Control; this.pictureBox6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.pictureBox6.Location = new System.Drawing.Point(368, 248); this.pictureBox6.Name = "pictureBox6"; this.pictureBox6.Size = new System.Drawing.Size(164, 164); this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox6.TabIndex = 5; this.pictureBox6.TabStop = false; // // label1 // this.label1.Location = new System.Drawing.Point(16, 24); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(168, 23); this.label1.TabIndex = 6; this.label1.Text = "NO BORDER"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // label2 // this.label2.Location = new System.Drawing.Point(192, 24); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(168, 23); this.label2.TabIndex = 7; this.label2.Text = "FIXED SINGLE BORDER"; this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // label3 // this.label3.Location = new System.Drawing.Point(368, 24); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(168, 23); this.label3.TabIndex = 8; this.label3.Text = "FIXED 3D BORDER"; this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // label4 // this.label4.Location = new System.Drawing.Point(16, 224); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(168, 23); this.label4.TabIndex = 9; this.label4.Text = "SIZE MODE AUTOSIZE"; this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // label5 // this.label5.Location = new System.Drawing.Point(192, 224); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(168, 23); this.label5.TabIndex = 10; this.label5.Text = "SIZE MODE CENTERIMAGE"; this.label5.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // label6 // this.label6.Location = new System.Drawing.Point(368, 224); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(168, 23); this.label6.TabIndex = 11; this.label6.Text = "SIZE MODE STRETCHIMAGE"; this.label6.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(544, 422); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label6, this.label5, this.label4, this.label3, this.label2, this.label1, this.pictureBox6, this.pictureBox5, this.pictureBox4, this.pictureBox3, this.pictureBox2, this.pictureBox1}); this.Name = "Form1"; this.Text = "Form1"; this.ResumeLayout(false); } #endregion /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.Run(new Form1()); } } }