📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "退出"
Height = 495
Left = 2760
TabIndex = 5
Top = 2400
Width = 855
End
Begin VB.TextBox Text2
Height = 615
Left = 2280
TabIndex = 2
Top = 1440
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "计算"
Height = 495
Left = 1080
TabIndex = 1
Top = 2400
Width = 855
End
Begin VB.TextBox Text1
Height = 615
Left = 2280
TabIndex = 0
Top = 600
Width = 1455
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "输入a"
BeginProperty Font
Name = "仿宋_GB2312"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 1200
TabIndex = 4
Top = 720
Width = 825
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "Exp^a"
BeginProperty Font
Name = "仿宋_GB2312"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 1200
TabIndex = 3
Top = 1560
Width = 825
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim x
If Text1.Text = "" Then
MsgBox "请输入系数", 48 + vbOKOnly, "提示信息"
Text1.SetFocus
ElseIf IsNumeric(Text1.Text) Then
x = Val(Text1.Text)
Text2.Text = Str(Format(Exp(x), "#.###"))
Else
MsgBox "输入数据错误", 48 + vbOKOnly, "提示信息"
Text1.Text = ""
End If
End Sub
Private Sub Command2_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -