【发布时间】:2014-07-03 06:38:01
【问题描述】:
这是我在 VB6 中锁定控件的代码
Private Function lockControls()
For Each ctrl In Me.Controls
If TypeOf ctrl Is TextBox _
Or TypeOf ctrl Is ComboBox _
Or TypeOf ctrl Is NumBox _
Or TypeOf ctrl Is OptionButton _
Or TypeOf ctrl Is DTPicker Then
ctrl.Enabled = True
End If
Next
End Function
但是当我尝试运行程序时,它显示类型不匹配并且没有给出任何提示。
谁能说出这段代码有什么问题。
【问题讨论】:
标签: vb6