【VB开源代码栏目提醒】:网学会员VB开源代码为您提供Ex10_2.frm参考,解决您在Ex10_2.frm学习中工作中的难题,参考学习。
VERSION 5.00
Begin VB.Form Ex10_2
Caption = "屏蔽错误"
ClientHeight = 2595
ClientLeft = 60
ClientTop = 450
ClientWidth = 4035
LinkTopic = "Form1"
ScaleHeight = 2595
ScaleWidth = 4035
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "屏蔽错误"
Height = 375
Left = 1920
TabIndex = 1
Top = 1080
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "错误"
Height = 375
Left = 600
TabIndex = 0
Top = 1080
Width = 1095
End
End
Attribute
VB_Name = "Ex10_2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
ActiveControl.Text = "按钮1"
ActiveControl.Caption = "按钮1"
ActiveControl.Min = 0
ActiveControl.Max = 100
End Sub
Private Sub Command2_Click()
On Error Resume Next '忽略错误
ActiveControl.Text = "按钮2"
ActiveControl.Caption = "按钮2"
ActiveControl.Min = 0
ActiveControl.Max = 100
End Sub