⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.designer.vb

📁 visual basic 实现简单的drawing example例子
💻 VB
字号:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits System.Windows.Forms.Form

    'Form 重写 Dispose,以清理组件列表。
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing AndAlso components IsNot Nothing Then
            components.Dispose()
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Windows 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意: 以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改它。
    '不要使用代码编辑器修改它。
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.pbDrawingSurface = New System.Windows.Forms.PictureBox
        Me.cboShape = New System.Windows.Forms.ComboBox
        Me.cmbDraw = New System.Windows.Forms.Button
        Me.Label1 = New System.Windows.Forms.Label
        Me.nupWidth = New System.Windows.Forms.NumericUpDown
        Me.Label2 = New System.Windows.Forms.Label
        Me.nupHeight = New System.Windows.Forms.NumericUpDown
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label4 = New System.Windows.Forms.Label
        Me.nupX = New System.Windows.Forms.NumericUpDown
        Me.nupy = New System.Windows.Forms.NumericUpDown
        CType(Me.pbDrawingSurface, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.nupWidth, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.nupHeight, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.nupX, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.nupy, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'pbDrawingSurface
        '
        Me.pbDrawingSurface.Location = New System.Drawing.Point(12, 12)
        Me.pbDrawingSurface.Name = "pbDrawingSurface"
        Me.pbDrawingSurface.Size = New System.Drawing.Size(470, 321)
        Me.pbDrawingSurface.TabIndex = 0
        Me.pbDrawingSurface.TabStop = False
        '
        'cboShape
        '
        Me.cboShape.FormattingEnabled = True
        Me.cboShape.Items.AddRange(New Object() {"Line Rectangle", "Solid Rectangle", "Line Ellipse", "Solid Ellipse", "Polygon", "String"})
        Me.cboShape.Location = New System.Drawing.Point(35, 355)
        Me.cboShape.Name = "cboShape"
        Me.cboShape.Size = New System.Drawing.Size(121, 20)
        Me.cboShape.TabIndex = 1
        '
        'cmbDraw
        '
        Me.cmbDraw.Location = New System.Drawing.Point(52, 396)
        Me.cmbDraw.Name = "cmbDraw"
        Me.cmbDraw.Size = New System.Drawing.Size(75, 23)
        Me.cmbDraw.TabIndex = 2
        Me.cmbDraw.Text = "Draw"
        Me.cmbDraw.UseVisualStyleBackColor = True
        '
        'Label1
        '
        Me.Label1.AutoSize = True
        Me.Label1.Location = New System.Drawing.Point(217, 362)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(35, 12)
        Me.Label1.TabIndex = 3
        Me.Label1.Text = "Width"
        '
        'nupWidth
        '
        Me.nupWidth.Location = New System.Drawing.Point(264, 360)
        Me.nupWidth.Maximum = New Decimal(New Integer() {1000, 0, 0, 0})
        Me.nupWidth.Name = "nupWidth"
        Me.nupWidth.Size = New System.Drawing.Size(65, 21)
        Me.nupWidth.TabIndex = 4
        '
        'Label2
        '
        Me.Label2.AutoSize = True
        Me.Label2.Location = New System.Drawing.Point(352, 360)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(41, 12)
        Me.Label2.TabIndex = 5
        Me.Label2.Text = "Height"
        '
        'nupHeight
        '
        Me.nupHeight.Location = New System.Drawing.Point(399, 358)
        Me.nupHeight.Name = "nupHeight"
        Me.nupHeight.Size = New System.Drawing.Size(66, 21)
        Me.nupHeight.TabIndex = 6
        '
        'Label3
        '
        Me.Label3.AutoSize = True
        Me.Label3.Location = New System.Drawing.Point(219, 396)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(11, 12)
        Me.Label3.TabIndex = 7
        Me.Label3.Text = "X"
        '
        'Label4
        '
        Me.Label4.AutoSize = True
        Me.Label4.Location = New System.Drawing.Point(354, 396)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(11, 12)
        Me.Label4.TabIndex = 8
        Me.Label4.Text = "Y"
        '
        'nupX
        '
        Me.nupX.Location = New System.Drawing.Point(267, 396)
        Me.nupX.Name = "nupX"
        Me.nupX.Size = New System.Drawing.Size(62, 21)
        Me.nupX.TabIndex = 9
        '
        'nupy
        '
        Me.nupy.Location = New System.Drawing.Point(402, 395)
        Me.nupy.Name = "nupy"
        Me.nupy.Size = New System.Drawing.Size(63, 21)
        Me.nupy.TabIndex = 10
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(494, 439)
        Me.Controls.Add(Me.nupy)
        Me.Controls.Add(Me.nupX)
        Me.Controls.Add(Me.Label4)
        Me.Controls.Add(Me.Label3)
        Me.Controls.Add(Me.nupHeight)
        Me.Controls.Add(Me.Label2)
        Me.Controls.Add(Me.nupWidth)
        Me.Controls.Add(Me.Label1)
        Me.Controls.Add(Me.cmbDraw)
        Me.Controls.Add(Me.cboShape)
        Me.Controls.Add(Me.pbDrawingSurface)
        Me.Name = "Form1"
        Me.Text = "Form1"
        CType(Me.pbDrawingSurface, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.nupWidth, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.nupHeight, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.nupX, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.nupy, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents pbDrawingSurface As System.Windows.Forms.PictureBox
    Friend WithEvents cboShape As System.Windows.Forms.ComboBox
    Friend WithEvents cmbDraw As System.Windows.Forms.Button
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents nupWidth As System.Windows.Forms.NumericUpDown
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents nupHeight As System.Windows.Forms.NumericUpDown
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents nupX As System.Windows.Forms.NumericUpDown
    Friend WithEvents nupy As System.Windows.Forms.NumericUpDown

End Class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -