For Each con As WinForm.Control In e.Form.Controls
con.Enabled = False
Next
Dim tbl As WinForm.Table = e.Form.Controls("Table1")
tbl.Enabled = True
tbl.ReadOnly = True
Dim tbc As WinForm.TabControl = e.Form.Controls("TabControl")
Dim tc As WinForm.Button = e.Form.Controls("退出")
tbc.Enabled =True
tc.Enabled =True
我想设置该窗口除了tabcontrol控件和退出按钮可以使用外,其他都不能使用。
上述代码实现结果全都是不能使用的,这有什么问题吗