【VB开源代码栏目提醒】:网学会员为广大网友收集整理了,Ex6_11.frm,希望对大家有所帮助!
VERSION 5.00
Begin VB.Form Ex6_11
Caption = "Form1"
ClientHeight = 1785
ClientLeft = 60
ClientTop = 450
ClientWidth = 3300
LinkTopic = "Form1"
ScaleHeight = 1785
ScaleWidth = 3300
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 1080
TabIndex = 2
Top = 1080
Width = 975
End
Begin VB.TextBox Text1
Height = 375
Left = 2040
TabIndex = 1
Top = 360
Width = 855
End
Begin VB.Label Label1
Caption = " 请输入一个正数"
Height = 255
Left = 360
TabIndex = 0
Top = 480
Width = 1455
End
End
Attribute
VB_Name = "Ex6_11"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mycls As New ProGetLet
Private Sub Command1_Click()
mycls.CurVolume = Text1.Text
MsgBox ("您最后一次输入的正数为 " & mycls.CurVolume)
End Sub