📄 calculatorform.vb
字号:
Public Class CalculatorForm
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 bttn1 As System.Windows.Forms.Button
Friend WithEvents bttn2 As System.Windows.Forms.Button
Friend WithEvents bttn3 As System.Windows.Forms.Button
Friend WithEvents bttn4 As System.Windows.Forms.Button
Friend WithEvents bttn5 As System.Windows.Forms.Button
Friend WithEvents bttn6 As System.Windows.Forms.Button
Friend WithEvents bttn7 As System.Windows.Forms.Button
Friend WithEvents bttn8 As System.Windows.Forms.Button
Friend WithEvents bttn9 As System.Windows.Forms.Button
Friend WithEvents bttn0 As System.Windows.Forms.Button
Friend WithEvents lblDisplay As System.Windows.Forms.Label
Friend WithEvents bttnPeriod As System.Windows.Forms.Button
Friend WithEvents bttnPlus As System.Windows.Forms.Button
Friend WithEvents bttnMinus As System.Windows.Forms.Button
Friend WithEvents bttnEquals As System.Windows.Forms.Button
Friend WithEvents bttnMultiply As System.Windows.Forms.Button
Friend WithEvents bttnDivide As System.Windows.Forms.Button
Friend WithEvents bttnClear As System.Windows.Forms.Button
Friend WithEvents bttnInverse As System.Windows.Forms.Button
Friend WithEvents bttnNegate As System.Windows.Forms.Button
Friend WithEvents bttnSin As System.Windows.Forms.Button
Friend WithEvents bttnLog As System.Windows.Forms.Button
Friend WithEvents bttnCos As System.Windows.Forms.Button
'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.bttnPeriod = New System.Windows.Forms.Button()
Me.bttnMultiply = New System.Windows.Forms.Button()
Me.bttn7 = New System.Windows.Forms.Button()
Me.bttn4 = New System.Windows.Forms.Button()
Me.bttn5 = New System.Windows.Forms.Button()
Me.bttn2 = New System.Windows.Forms.Button()
Me.bttnDivide = New System.Windows.Forms.Button()
Me.bttn0 = New System.Windows.Forms.Button()
Me.bttn1 = New System.Windows.Forms.Button()
Me.bttnPlus = New System.Windows.Forms.Button()
Me.bttnNegate = New System.Windows.Forms.Button()
Me.bttn6 = New System.Windows.Forms.Button()
Me.bttn8 = New System.Windows.Forms.Button()
Me.bttn9 = New System.Windows.Forms.Button()
Me.bttn3 = New System.Windows.Forms.Button()
Me.bttnMinus = New System.Windows.Forms.Button()
Me.lblDisplay = New System.Windows.Forms.Label()
Me.bttnClear = New System.Windows.Forms.Button()
Me.bttnInverse = New System.Windows.Forms.Button()
Me.bttnEquals = New System.Windows.Forms.Button()
Me.bttnSin = New System.Windows.Forms.Button()
Me.bttnLog = New System.Windows.Forms.Button()
Me.bttnCos = New System.Windows.Forms.Button()
Me.SuspendLayout()
'
'bttnPeriod
'
Me.bttnPeriod.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttnPeriod.Location = New System.Drawing.Point(8, 160)
Me.bttnPeriod.Name = "bttnPeriod"
Me.bttnPeriod.Size = New System.Drawing.Size(32, 32)
Me.bttnPeriod.TabIndex = 1
Me.bttnPeriod.Text = "."
'
'bttnMultiply
'
Me.bttnMultiply.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttnMultiply.Location = New System.Drawing.Point(144, 80)
Me.bttnMultiply.Name = "bttnMultiply"
Me.bttnMultiply.Size = New System.Drawing.Size(32, 32)
Me.bttnMultiply.TabIndex = 1
Me.bttnMultiply.Text = "*"
'
'bttn7
'
Me.bttn7.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttn7.Location = New System.Drawing.Point(8, 120)
Me.bttn7.Name = "bttn7"
Me.bttn7.Size = New System.Drawing.Size(32, 32)
Me.bttn7.TabIndex = 1
Me.bttn7.Text = "7"
'
'bttn4
'
Me.bttn4.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttn4.Location = New System.Drawing.Point(8, 80)
Me.bttn4.Name = "bttn4"
Me.bttn4.Size = New System.Drawing.Size(32, 32)
Me.bttn4.TabIndex = 1
Me.bttn4.Text = "4"
'
'bttn5
'
Me.bttn5.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttn5.Location = New System.Drawing.Point(48, 80)
Me.bttn5.Name = "bttn5"
Me.bttn5.Size = New System.Drawing.Size(32, 32)
Me.bttn5.TabIndex = 1
Me.bttn5.Text = "5"
'
'bttn2
'
Me.bttn2.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttn2.Location = New System.Drawing.Point(48, 40)
Me.bttn2.Name = "bttn2"
Me.bttn2.Size = New System.Drawing.Size(32, 32)
Me.bttn2.TabIndex = 1
Me.bttn2.Text = "2"
'
'bttnDivide
'
Me.bttnDivide.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttnDivide.Location = New System.Drawing.Point(184, 80)
Me.bttnDivide.Name = "bttnDivide"
Me.bttnDivide.Size = New System.Drawing.Size(32, 32)
Me.bttnDivide.TabIndex = 1
Me.bttnDivide.Text = "/"
'
'bttn0
'
Me.bttn0.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttn0.Location = New System.Drawing.Point(48, 160)
Me.bttn0.Name = "bttn0"
Me.bttn0.Size = New System.Drawing.Size(32, 32)
Me.bttn0.TabIndex = 1
Me.bttn0.Text = "0"
'
'bttn1
'
Me.bttn1.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttn1.Location = New System.Drawing.Point(8, 40)
Me.bttn1.Name = "bttn1"
Me.bttn1.Size = New System.Drawing.Size(32, 32)
Me.bttn1.TabIndex = 1
Me.bttn1.Text = "1"
'
'bttnPlus
'
Me.bttnPlus.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttnPlus.Location = New System.Drawing.Point(144, 40)
Me.bttnPlus.Name = "bttnPlus"
Me.bttnPlus.Size = New System.Drawing.Size(32, 32)
Me.bttnPlus.TabIndex = 1
Me.bttnPlus.Text = "+"
'
'bttnNegate
'
Me.bttnNegate.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttnNegate.Location = New System.Drawing.Point(184, 120)
Me.bttnNegate.Name = "bttnNegate"
Me.bttnNegate.Size = New System.Drawing.Size(32, 32)
Me.bttnNegate.TabIndex = 1
Me.bttnNegate.Text = "+-"
'
'bttn6
'
Me.bttn6.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttn6.Location = New System.Drawing.Point(88, 80)
Me.bttn6.Name = "bttn6"
Me.bttn6.Size = New System.Drawing.Size(32, 32)
Me.bttn6.TabIndex = 1
Me.bttn6.Text = "6"
'
'bttn8
'
Me.bttn8.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttn8.Location = New System.Drawing.Point(48, 120)
Me.bttn8.Name = "bttn8"
Me.bttn8.Size = New System.Drawing.Size(32, 32)
Me.bttn8.TabIndex = 1
Me.bttn8.Text = "8"
'
'bttn9
'
Me.bttn9.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttn9.Location = New System.Drawing.Point(88, 120)
Me.bttn9.Name = "bttn9"
Me.bttn9.Size = New System.Drawing.Size(32, 32)
Me.bttn9.TabIndex = 1
Me.bttn9.Text = "9"
'
'bttn3
'
Me.bttn3.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttn3.Location = New System.Drawing.Point(88, 40)
Me.bttn3.Name = "bttn3"
Me.bttn3.Size = New System.Drawing.Size(32, 32)
Me.bttn3.TabIndex = 1
Me.bttn3.Text = "3"
'
'bttnMinus
'
Me.bttnMinus.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.bttnMinus.Location = New System.Drawing.Point(184, 40)
Me.bttnMinus.Name = "bttnMinus"
Me.bttnMinus.Size = New System.Drawing.Size(32, 32)
Me.bttnMinus.TabIndex = 1
Me.bttnMinus.Text = "-"
'
'lblDisplay
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -