在我保存后,检查项目如何可见,是否可以这样做? [英] How does checked items can be visible after I'm saving it, Is it possible to do that?
本文介绍了在我保存后,检查项目如何可见,是否可以这样做?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望这些项目在保存后可见。因为每次我点击保存按钮。它也消失了。我想让检查项目尽可能可见。这是我的代码。
I want these Items to become visible after I save it. Because every time I click the "save" button. It also disappears. I want to make the checked item as visible as possible. Here's my code.
CheckBox1.Checked = False
listview.Enabled = True
Dim tmp
Dim check As String
Dim i
Dim X
For X = 0 To listview.Items.Count - 1
listview.Items(X).Checked = False
Next
tmp = combobox.Text.Split("/")
check = "select accessid,forms as checkform from userform_tab where accessid='" & (tmp(0)) & "'"
CLSCONN = New C_connection
CLSCONN.ACCESS_INDREC(check)
With CLSCONN.ds
End With
For i = 1 To listview.Items.Count
If String.Compare("your Comapre String1", "your Comapre String2") = 0 Then
listview.Items(i).Checked = True
End If
Next
推荐答案
尝试比较如下所示 -
Try comparing like given below -
For i = 1 To ListView.Items.Count
If String.Compare(Convert.ToString("your Comapre String1").ToLower(), Convert.ToString("your Comapre String2").ToLower()) = 0 Then
ListView.Items(i).Checked = True
End If
Next
这篇关于在我保存后,检查项目如何可见,是否可以这样做?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文