Foxtable(狐表)用户栏目专家坐堂 → CheckedListBox求助


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

主题:CheckedListBox求助

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/3/22 11:10:00 [显示全部帖子]

systemready = False
If e.Sender.SelectedValue = "全部"
    For i As Integer = 0 To e.Sender.Items.Count - 1
        e.Sender.SetItemChecked(i, e.Checked)
    Next
End If

If e.Sender.SelectedValue = "非空"
    For i As Integer = 0 To e.Sender.Items.Count - 1
        If e.sender.Items(i) <> "全部" AndAlso e.sender.Items(i) <> "空值" Then
            e.Sender.SetItemChecked(i, e.Checked)
        Else
            e.Sender.SetItemChecked(i, False)
        End If
    Next
End If
If e.Sender.SelectedValue = "空值"
    For i As Integer = 0 To e.Sender.Items.Count - 1
        If e.sender.Items(i) <> "全部" AndAlso e.sender.Items(i) <> "非空" Then
            e.Sender.SetItemChecked(i, e.Checked)
        Else
            e.Sender.SetItemChecked(i, False)
        End If
    Next
End If
systemready = True


 回到顶部