【求教】vb 中,如何批量 设定控件textbox的属性
如题:如何批量 设定控件textbox的属性:locked或Readonly
以前在VBA中可以
Dim i, n As Integer
n = 13
For i = 1 To n
With UserForm2.Controls("textbox" & i)
.Enabled = True
.BackColor = &H8000000F
.BackStyle = 1
.BorderColor = &H8000000F
.BorderStyle = 1
.ForeColor = &HFF0000
.SpecialEffect = fmSpecialEffectFlat
.Locked = True
End With
Next i
但现在想用vb的话就不行了。