你去做一个计划管理,然后贴入如下代码,就可以控制foxtable窗口的控件了。
思路就是这样,你慢慢消化
Dim frm As Object = windows.Forms.Form.activeform
If frm IsNot Nothing Then
'output.show(frm.name & "dd" & frm.text)
If frm.name = "Class235" Then
frm.controls("Button1").Visible = False
frm.controls("Button2").Visible = False
frm.controls("Button3").Visible = False
frm.controls("cmbFTPPath").Visible = False
frm.controls("Label1").Visible = False
frm.controls("TextBox1").Visible = False
frm.controls("C1FlexGrid1").height = 380
Else If frm.name = "Class234" Then
frm.controls("cmbFTPPath").Visible = False
frm.controls("Label2").Visible = False
frm.controls("cmbFTPPath").Visible = False
frm.controls("btnOpen").Visible = False
frm.controls("btnOpenLocFolder").Visible = False
frm.controls("Label1").Visible = False
frm.controls("btnRefresh").Visible = False
frm.controls("btnUpload").Visible = False
frm.controls("btnDownload").Visible = False
frm.controls("btnMakeDir").Visible = False
frm.controls("btnRename").Visible = False
frm.controls("btnDelete").Visible = False
frm.controls("C1FlexGrid2").Visible = False
frm.controls("C1FlexGrid1").top = 10
frm.height = 380
End If
End If