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

📄 frmcal.vb

📁 用VB.NET写的人员管理系统,可用于二次开发.
💻 VB
字号:
Public Class Calc
    Inherits System.Windows.Forms.Form

#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写 dispose 以清理组件列表。
    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

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

    '注意: 以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
    Friend WithEvents Calfield As System.Windows.Forms.TextBox
    Friend WithEvents Calc1 As System.Windows.Forms.Button
    Friend WithEvents Calc2 As System.Windows.Forms.Button
    Friend WithEvents Calc3 As System.Windows.Forms.Button
    Friend WithEvents Calc4 As System.Windows.Forms.Button
    Friend WithEvents Calc5 As System.Windows.Forms.Button
    Friend WithEvents Calc6 As System.Windows.Forms.Button
    Friend WithEvents Calplus As System.Windows.Forms.Button
    Friend WithEvents Calmin As System.Windows.Forms.Button
    Friend WithEvents Calres As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.Calfield = New System.Windows.Forms.TextBox
        Me.Calc1 = New System.Windows.Forms.Button
        Me.Calc2 = New System.Windows.Forms.Button
        Me.Calc3 = New System.Windows.Forms.Button
        Me.Calc4 = New System.Windows.Forms.Button
        Me.Calc5 = New System.Windows.Forms.Button
        Me.Calc6 = New System.Windows.Forms.Button
        Me.Calplus = New System.Windows.Forms.Button
        Me.Calmin = New System.Windows.Forms.Button
        Me.Calres = New System.Windows.Forms.Button
        Me.SuspendLayout()
        '
        'Calfield
        '
        Me.Calfield.Location = New System.Drawing.Point(40, 16)
        Me.Calfield.Name = "Calfield"
        Me.Calfield.Size = New System.Drawing.Size(192, 21)
        Me.Calfield.TabIndex = 0
        Me.Calfield.Text = " "
        '
        'Calc1
        '
        Me.Calc1.Location = New System.Drawing.Point(8, 168)
        Me.Calc1.Name = "Calc1"
        Me.Calc1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Calc1.TabIndex = 1
        Me.Calc1.Text = "1"
        '
        'Calc2
        '
        Me.Calc2.Location = New System.Drawing.Point(8, 128)
        Me.Calc2.Name = "Calc2"
        Me.Calc2.TabIndex = 2
        Me.Calc2.Text = "2"
        '
        'Calc3
        '
        Me.Calc3.Location = New System.Drawing.Point(8, 96)
        Me.Calc3.Name = "Calc3"
        Me.Calc3.TabIndex = 3
        Me.Calc3.Text = "3"
        '
        'Calc4
        '
        Me.Calc4.Location = New System.Drawing.Point(96, 168)
        Me.Calc4.Name = "Calc4"
        Me.Calc4.TabIndex = 4
        Me.Calc4.Text = "4"
        '
        'Calc5
        '
        Me.Calc5.Location = New System.Drawing.Point(96, 128)
        Me.Calc5.Name = "Calc5"
        Me.Calc5.TabIndex = 5
        Me.Calc5.Text = "5"
        '
        'Calc6
        '
        Me.Calc6.Location = New System.Drawing.Point(104, 96)
        Me.Calc6.Name = "Calc6"
        Me.Calc6.TabIndex = 6
        Me.Calc6.Text = "6"
        '
        'Calplus
        '
        Me.Calplus.Location = New System.Drawing.Point(200, 168)
        Me.Calplus.Name = "Calplus"
        Me.Calplus.TabIndex = 7
        Me.Calplus.Text = "+"
        '
        'Calmin
        '
        Me.Calmin.Location = New System.Drawing.Point(200, 128)
        Me.Calmin.Name = "Calmin"
        Me.Calmin.TabIndex = 8
        Me.Calmin.Text = "-"
        '
        'Calres
        '
        Me.Calres.Location = New System.Drawing.Point(200, 96)
        Me.Calres.Name = "Calres"
        Me.Calres.TabIndex = 9
        Me.Calres.Text = "="
        '
        'Calc
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
        Me.ClientSize = New System.Drawing.Size(292, 266)
        Me.Controls.Add(Me.Calres)
        Me.Controls.Add(Me.Calmin)
        Me.Controls.Add(Me.Calplus)
        Me.Controls.Add(Me.Calc6)
        Me.Controls.Add(Me.Calc5)
        Me.Controls.Add(Me.Calc4)
        Me.Controls.Add(Me.Calc3)
        Me.Controls.Add(Me.Calc2)
        Me.Controls.Add(Me.Calc1)
        Me.Controls.Add(Me.Calfield)
        Me.Name = "Calc"
        Me.Text = "计算器"
        Me.ResumeLayout(False)

    End Sub

#End Region

End Class

⌨️ 快捷键说明

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