Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose() End If End If MyBase.Dispose(disposing) End Sub Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox Friend WithEvents PictureBox2 As System.Windows.Forms.PictureBox Friend WithEvents PictureBox3 As System.Windows.Forms.PictureBox Friend WithEvents PictureBox4 As System.Windows.Forms.PictureBox Friend WithEvents Label1 As System.Windows.Forms.Label Friend WithEvents Label2 As System.Windows.Forms.Label Friend WithEvents Label3 As System.Windows.Forms.Label Friend WithEvents Label4 As System.Windows.Forms.Label Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog 'Required by the Windows Form Designer Private components As System.ComponentModel.Container 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. Private Sub InitializeComponent() Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1)) Me.Label4 = New System.Windows.Forms.Label() Me.Label1 = New System.Windows.Forms.Label() Me.Label2 = New System.Windows.Forms.Label() Me.Label3 = New System.Windows.Forms.Label() Me.PictureBox3 = New System.Windows.Forms.PictureBox() Me.PictureBox2 = New System.Windows.Forms.PictureBox() Me.PictureBox1 = New System.Windows.Forms.PictureBox() Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog() Me.PictureBox4 = New System.Windows.Forms.PictureBox() Me.SuspendLayout() ' 'Label4 ' Me.Label4.Font = New System.Drawing.Font("Comic Sans MS", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label4.Location = New System.Drawing.Point(296, 400) Me.Label4.Name = "Label4" Me.Label4.Size = New System.Drawing.Size(208, 23) Me.Label4.TabIndex = 1 Me.Label4.Text = "SizeMode = CenterImage" Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter ' 'Label1 ' Me.Label1.Font = New System.Drawing.Font("Comic Sans MS", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label1.Location = New System.Drawing.Point(8, 184) Me.Label1.Name = "Label1" Me.Label1.Size = New System.Drawing.Size(208, 23) Me.Label1.TabIndex = 1 Me.Label1.Text = "SizeMode = Normal" Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter ' 'Label2 ' Me.Label2.Font = New System.Drawing.Font("Comic Sans MS", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label2.Location = New System.Drawing.Point(296, 184) Me.Label2.Name = "Label2" Me.Label2.Size = New System.Drawing.Size(208, 23) Me.Label2.TabIndex = 1 Me.Label2.Text = "SizeMode = StretchImage" Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter ' 'Label3 ' Me.Label3.Font = New System.Drawing.Font("Comic Sans MS", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label3.Location = New System.Drawing.Point(16, 400) Me.Label3.Name = "Label3" Me.Label3.Size = New System.Drawing.Size(208, 23) Me.Label3.TabIndex = 1 Me.Label3.Text = "SizeMode =AutoSize" Me.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter ' 'PictureBox3 ' Me.PictureBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.PictureBox3.Image = CType(resources.GetObject("PictureBox3.Image"), System.Drawing.Bitmap) Me.PictureBox3.Location = New System.Drawing.Point(8, 224) Me.PictureBox3.Name = "PictureBox3" Me.PictureBox3.Size = New System.Drawing.Size(264, 141) Me.PictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize Me.PictureBox3.TabIndex = 0 Me.PictureBox3.TabStop = False ' 'PictureBox2 ' Me.PictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.PictureBox2.Image = CType(resources.GetObject("PictureBox2.Image"), System.Drawing.Bitmap) Me.PictureBox2.Location = New System.Drawing.Point(296, 16) Me.PictureBox2.Name = "PictureBox2" Me.PictureBox2.Size = New System.Drawing.Size(288, 172) Me.PictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage Me.PictureBox2.TabIndex = 0 Me.PictureBox2.TabStop = False ' 'PictureBox1 ' Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Bitmap) Me.PictureBox1.Location = New System.Drawing.Point(8, 16) Me.PictureBox1.Name = "PictureBox1" Me.PictureBox1.Size = New System.Drawing.Size(208, 168) Me.PictureBox1.TabIndex = 0 Me.PictureBox1.TabStop = False ' 'PictureBox4 ' Me.PictureBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.PictureBox4.Image = CType(resources.GetObject("PictureBox4.Image"), System.Drawing.Bitmap) Me.PictureBox4.Location = New System.Drawing.Point(296, 224) Me.PictureBox4.Name = "PictureBox4" Me.PictureBox4.Size = New System.Drawing.Size(288, 172) Me.PictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage Me.PictureBox4.TabIndex = 0 Me.PictureBox4.TabStop = False ' 'Form1 ' Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) Me.ClientSize = New System.Drawing.Size(592, 453) Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Label4, Me.Label3, Me.Label2, Me.Label1, Me.PictureBox4, Me.PictureBox3, Me.PictureBox2, Me.PictureBox1}) Me.Name = "Form1" Me.Text = "PictureBox.SizeMode Demo" Me.ResumeLayout(False) End Sub #End Region End Class