因为在窗口的afterload事件里写了代码,你删除代码便可。
Dim r As Row = Tables("表a").CurrentIf r IsNot Nothing Then e.Form.Controls("Table1").Visible = r.Locked e.Form.Controls("Table2").Visible = not r.LockedEnd If