Foxtable(狐表)用户栏目专家坐堂 → 指定的内容隐藏


  共有4412人关注过本帖树形打印复制链接

主题:指定的内容隐藏

帅哥哟,离线,有人找我吗?
yifan3429
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2482 积分:22932 威望:0 精华:0 注册:2011/3/29 17:14:00
指定的内容隐藏  发帖心情 Post By:2022/3/28 20:31:00 [显示全部帖子]

Dim v1() As String = {"sys_日期","sys_log","sys_姓名","sys_部门","权限组"}
For Each v As String In v1
If .Cols.Contains(v)
 .Cols.Remove(v)
End If
Next
 

上面在 AfterOpenProject 做了隐藏
下面的代码在 ComboBox 还是会显示

Dim TextBox As WinForm.ComboBox
TextBox = e.Form.CreateControl("模糊搜索", ControlTypeEnum.ComboBox)
TextBox.Text = "当前表内容模糊搜索"
TextBox.ForeColor = Color.LightBLue
TextBox.Left = TextBox1.Left
TextBox.Top = 5
TextBox.Width =240
TextBox.Height = 30
Dim s1 As String = ""
For Each frm As Col In MainTable.Cols
    s1 &= frm.name & "|"  
Next
TextBox.ComboList = s1.trim("|") 
e.Form.AddControl(TextBox)

怎么排除 sys_日期","sys_log","sys_姓名","sys_部门","权限组  呢



 回到顶部