단어가 포함 된 문자열이 있습니다. 나는이 단어들을 통해 반복하고 그것이 나의 목록 상자 항목들에서 발견 될 수 있다면 그것을 선택하게하고 싶다.listboxitem 이름에 선택한 문자열 집합이 포함되어있는 경우
Dim word As String
For Each word In words 'If it's null then do nothing
If String.IsNullOrEmpty(word) Then
Else
For l_index = 0 To DriveList.Items.Count - 1
If CStr(DriveList.Items(l_index)).Contains(word & ":\ drive") Then
How to select it???
End If
Next
End If
Next
End If
주의 사항 : .selected DriveList.Items (l_index) 또는 .setselected (l_index)가 작동되지 DriveList.Items, 그런 어떤 회원이 없습니다. VS2012를 사용하고 내 응용 프로그램은 .NET 4.5에서 실행됩니다.
진정한
유형 'System.MissingMemberException'의 첫 번째 예외가가 microsoft.visualbasic.dll에서 발생했습니다 – user1632298