应该是:
For Each c As Winform.Control In e.Form.Controls If c.Bindingfield > "" AndAlso c.Bindingfield.StartsWith("员工.") Then c.BindingField= c.BindingField.Replace("员工.", "BB_Table1.") End IfNext
你的窗口名称是“BB”,不是“窗口1"。