以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- 这个AllowDirectType 的问题 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=144178) |
-- 作者:nxhylczh -- 发布时间:2019/12/12 21:34:00 -- 这个AllowDirectType 的问题 AllowDirectType 逻辑型,是否允许用户直接输入不在列表项目中的内容。 示例 Tables("订单").Cols("客户").AllowDirectType = False 不允许直接输入,但是可以粘贴进去不同的内容 还有其他解决的办法吗? |
-- 作者:有点蓝 -- 发布时间:2019/12/13 8:55:00 -- keydown事件,屏蔽粘贴快捷键 If e.Table.Cols(e.Table.Colsel).name = "客户" Then If e.Control AndAlso e.keycode = keys.V Then e.cancel = True End If End If |