以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- Table"不是"WinForm.Control"的成员 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=119939) |
-- 作者:huangxueyao -- 发布时间:2018/6/4 15:05:00 -- Table"不是"WinForm.Control"的成员 For Each c As WinForm.Control In e.Form.Controls If Typeof c Is WinForm.Table Then \'判断控件是否是文本框 Dim t As Table = c.Table \'使用特定类型的变量引用控件 t.DataTable.DeleteFor("") End If Next 这个会报错,应如何修改
|
-- 作者:有点甜 -- 发布时间:2018/6/4 15:10:00 -- For Each c As object In e.Form.Controls
If Typeof c Is WinForm.Table Then \'判断控件是否是文本框
Dim t As Table = c.Table \'使用特定类型的变量引用控件
t.DataTable.DeleteFor("")
End If
Next
|