计划管理,参考以前跟你说过的绑定事件解决。
Dim frm = windows.Forms.Form.Activeform
If frm IsNot Nothing Then
'output.show(frm.Name & " " & frm.text)
If frm.name = "bj" AndAlso frm.text = "狐狸计算器" Then
'For Each c As object In frm.controls
' output.show(c.name)
'Next
Dim ls As object = frm.controls("lstCols")
ls.items.clear
For Each c As Col In CurrentTable.cols
ls.items.add(c.name & " " & c.caption)
Next
End If
End If