For Each c As WinForm.DropDownBox In e.Form.Children c.Enabled = FalseNext
For Each c As WinForm.Control In e.Form.Children
If Typeof c Is WinForm.DropDownBox then
c.Enabled = False
End IfNext
如果用e.Form.Controls,碰到复合控件的时候,会把控件中的控件也遍历出来。