0
嘗試到C#轉換爲VB,但我不斷收到以下錯誤:物業子項目是隻讀的,更
物業子項目是隻讀
和String類型(的
值)不能轉換到ListViewItem.ListViewSubItemCollection
我的代碼如下:
ListView1.Items.Clear()
For int_0 As Integer = 0 To 17
Dim tuple As Tuple(Of String, String, String) = pullMem(int_0)
If tuple.Item3.Contains("09") Then
Me.ListView1.Items.Add(New ListViewItem(tuple.Item1) With {
.SubItems = {tuple.Item2, tuple.Item3}
})
End If
Next int_0
Catch e1 As Exception
MessageBox.Show("You must connect first!", "Error")
End Try