我想将一个窗口内的20多个按钮控件的 Enabled 都设成 False 一个个来写代码比较麻烦,可有简单点的代码吗??
抄了帮助里的:
For Each c As WinForm.Control In Forms("工单").Controls If Typeof c Is WinForm.Button Then Dim t As WinForm.Button = c
t.Enabled = False End If Next