Foxtable(狐表)用户栏目专家坐堂 → [求助]复选框选中后,禁止编辑


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

主题:[求助]复选框选中后,禁止编辑

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


加好友 发短信
等级:狐神 帖子:4752 积分:34568 威望:0 精华:0 注册:2008/8/31 22:44:00
  发帖心情 Post By:2016/10/22 8:00:00 [显示全部帖子]

“审核”的CheckedChanged事件:
Dim TextBox1 As WinForm.TextBox = e.Form.Controls("TextBox1")
Dim TextBox2 As WinForm.TextBox = e.Form.Controls("TextBox2")
Dim TextBox3 As WinForm.TextBox = e.Form.Controls("TextBox3")
Dim TextBox4 As WinForm.TextBox = e.Form.Controls("TextBox4")
Dim tbs() As WinForm.TextBox = {TextBox1,TextBox2,TextBox3,TextBox4}
For Each tb As WinForm.TextBox In tbs
    tb.ReadOnly  = iif( e.sender.Checked = True,1,0)
Next

 回到顶部