【VB开源代码栏目提醒】:网学会员,鉴于大家对VB开源代码十分关注,论文会员在此为大家搜集整理了“Ex6_4.frm”一文,供大家参考学习!
VERSION 5.00
Begin VB.Form Ex6_4
Caption = "Form1"
ClientHeight = 2895
ClientLeft = 60
ClientTop = 450
ClientWidth = 4245
LinkTopic = "Form1"
ScaleHeight = 2895
ScaleWidth = 4245
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 2040
TabIndex = 3
Top = 2160
Width = 1215
End
Begin VB.TextBox Text2
Height = 375
Left = 720
TabIndex = 2
Top = 2160
Width = 735
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 26.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 975
Left = 480
TabIndex = 0
Text = "Hello"
Top = 240
Width = 3135
End
Begin VB.Label Label1
Caption = "请输入1或2,1表示隐藏上面的文本框,2表示显示上面的文本框。"
Height = 375
Left = 720
TabIndex = 1
Top = 1560
Width = 2655
End
End
Attribute VB_Name = "Ex6_4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim i As Integer
i = Text2.Text '读取属性
If i = 2 Then
Text1.Visible = True '设置属性
Else
Text1.Visible = False
End If
End Sub
上一篇:
Ex6_3.frm
下一篇:
毕业论文--基于Android平台的交通事故快速处理与查询系统