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

📄 formmain.vb

📁 Visual Basic.net 实例入门
💻 VB
📖 第 1 页 / 共 2 页
字号:
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 ListResult As System.Windows.Forms.ListBox
    Friend WithEvents TBNum1 As System.Windows.Forms.TextBox
    Friend WithEvents TBNum2 As System.Windows.Forms.TextBox
    Friend WithEvents TBNum3 As System.Windows.Forms.TextBox
    Friend WithEvents TBNum4 As System.Windows.Forms.TextBox
    Friend WithEvents LBChance As System.Windows.Forms.Label
    Friend WithEvents BTOK As System.Windows.Forms.Button
    Friend WithEvents BTExit As System.Windows.Forms.Button
    Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
    Friend WithEvents mFile As System.Windows.Forms.MenuItem
    Friend WithEvents mOK As System.Windows.Forms.MenuItem
    Friend WithEvents mExit As System.Windows.Forms.MenuItem
    Friend WithEvents mHelp As System.Windows.Forms.MenuItem
    Friend WithEvents mAbout As System.Windows.Forms.MenuItem
    Friend WithEvents btReset As System.Windows.Forms.Button
    Friend WithEvents mReset As System.Windows.Forms.MenuItem
    Friend WithEvents mBlank As System.Windows.Forms.MenuItem

    '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.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.mReset = New System.Windows.Forms.MenuItem()
        Me.mBlank = New System.Windows.Forms.MenuItem()
        Me.BTExit = New System.Windows.Forms.Button()
        Me.mOK = New System.Windows.Forms.MenuItem()
        Me.ListResult = New System.Windows.Forms.ListBox()
        Me.BTOK = New System.Windows.Forms.Button()
        Me.mHelp = New System.Windows.Forms.MenuItem()
        Me.mAbout = New System.Windows.Forms.MenuItem()
        Me.TBNum2 = New System.Windows.Forms.TextBox()
        Me.TBNum3 = New System.Windows.Forms.TextBox()
        Me.TBNum1 = New System.Windows.Forms.TextBox()
        Me.TBNum4 = New System.Windows.Forms.TextBox()
        Me.MainMenu1 = New System.Windows.Forms.MainMenu()
        Me.mFile = New System.Windows.Forms.MenuItem()
        Me.mExit = New System.Windows.Forms.MenuItem()
        Me.btReset = New System.Windows.Forms.Button()
        Me.LBChance = New System.Windows.Forms.Label()
        Me.SuspendLayout()
        '
        'mReset
        '
        Me.mReset.Index = 1
        Me.mReset.Text = "重新开始(&R)"
        '
        'mBlank
        '
        Me.mBlank.Index = 2
        Me.mBlank.Text = "-"
        '
        'BTExit
        '
        Me.BTExit.FlatStyle = System.Windows.Forms.FlatStyle.Popup
        Me.BTExit.Location = New System.Drawing.Point(88, 120)
        Me.BTExit.Name = "BTExit"
        Me.BTExit.TabIndex = 3
        Me.BTExit.Text = "退出(&X)"
        '
        'mOK
        '
        Me.mOK.Index = 0
        Me.mOK.Text = "确定(&O)"
        '
        'ListResult
        '
        Me.ListResult.ItemHeight = 12
        Me.ListResult.Location = New System.Drawing.Point(200, 8)
        Me.ListResult.Name = "ListResult"
        Me.ListResult.ScrollAlwaysVisible = True
        Me.ListResult.Size = New System.Drawing.Size(96, 136)
        Me.ListResult.TabIndex = 0
        '
        'BTOK
        '
        Me.BTOK.FlatStyle = System.Windows.Forms.FlatStyle.Popup
        Me.BTOK.Location = New System.Drawing.Point(8, 120)
        Me.BTOK.Name = "BTOK"
        Me.BTOK.TabIndex = 3
        Me.BTOK.Text = "确定(&O)"
        '
        'mHelp
        '
        Me.mHelp.Index = 1
        Me.mHelp.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mAbout})
        Me.mHelp.Text = "帮助(&H)"
        '
        'mAbout
        '
        Me.mAbout.Index = 0
        Me.mAbout.Text = "关于猜数字(&A)..."
        '
        'TBNum2
        '
        Me.TBNum2.Font = New System.Drawing.Font("宋体", 18!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.TBNum2.Location = New System.Drawing.Point(56, 8)
        Me.TBNum2.Name = "TBNum2"
        Me.TBNum2.Size = New System.Drawing.Size(40, 35)
        Me.TBNum2.TabIndex = 1
        Me.TBNum2.Text = ""
        '
        'TBNum3
        '
        Me.TBNum3.Font = New System.Drawing.Font("宋体", 18!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.TBNum3.Location = New System.Drawing.Point(104, 8)
        Me.TBNum3.Name = "TBNum3"
        Me.TBNum3.Size = New System.Drawing.Size(40, 35)
        Me.TBNum3.TabIndex = 1
        Me.TBNum3.Text = ""
        '
        'TBNum1
        '
        Me.TBNum1.Font = New System.Drawing.Font("宋体", 18!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.TBNum1.Location = New System.Drawing.Point(8, 8)
        Me.TBNum1.Name = "TBNum1"
        Me.TBNum1.Size = New System.Drawing.Size(40, 35)
        Me.TBNum1.TabIndex = 1
        Me.TBNum1.Text = ""
        '
        'TBNum4
        '
        Me.TBNum4.Font = New System.Drawing.Font("宋体", 18!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.TBNum4.Location = New System.Drawing.Point(152, 8)
        Me.TBNum4.Name = "TBNum4"
        Me.TBNum4.Size = New System.Drawing.Size(40, 35)
        Me.TBNum4.TabIndex = 1
        Me.TBNum4.Text = ""
        '
        'MainMenu1
        '
        Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mFile, Me.mHelp})
        '
        'mFile
        '
        Me.mFile.Index = 0
        Me.mFile.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mOK, Me.mReset, Me.mBlank, Me.mExit})
        Me.mFile.Text = "文件(&F)"
        '
        'mExit
        '
        Me.mExit.Index = 3
        Me.mExit.Text = "退出(&X)"
        '
        'btReset
        '
        Me.btReset.FlatStyle = System.Windows.Forms.FlatStyle.Popup
        Me.btReset.Location = New System.Drawing.Point(8, 88)
        Me.btReset.Name = "btReset"
        Me.btReset.Size = New System.Drawing.Size(155, 24)
        Me.btReset.TabIndex = 4
        Me.btReset.Text = "重新开始(&R)"
        '
        'LBChance
        '
        Me.LBChance.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me.LBChance.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.LBChance.Location = New System.Drawing.Point(8, 56)
        Me.LBChance.Name = "LBChance"
        Me.LBChance.Size = New System.Drawing.Size(184, 24)
        Me.LBChance.TabIndex = 2
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
        Me.ClientSize = New System.Drawing.Size(304, 153)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btReset, Me.BTExit, Me.BTOK, Me.LBChance, Me.TBNum4, Me.TBNum3, Me.TBNum2, Me.TBNum1, Me.ListResult})
        Me.MaximizeBox = False
        Me.Menu = Me.MainMenu1
        Me.Name = "Form1"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "猜数字"
        Me.ResumeLayout(False)

    End Sub

#End Region

⌨️ 快捷键说明

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