以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  通过遍历控件 设置Table 无效 如何解决  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=155803)

--  作者:ehbx_ysj
--  发布时间:2020/9/27 13:38:00
--  通过遍历控件 设置Table 无效 如何解决
通过遍历控件 设置Table 无效  代码执行 后双击还是能编辑
Table  是Normal 类型

For Each c As WinForm.Control  In frm.Controls
     If Typeof c Is WinForm.Table Then        
        Dim t As WinForm.Table 
        t =c
        t.AllowEdit = False
    End If
Next
[此贴子已经被作者于2020/9/27 13:44:38编辑过]

--  作者:有点蓝
--  发布时间:2020/9/27 13:48:00
--  
t.table.AllowEdit = False