Printing a ListViewItems
My problem is that i can't print the second row in ListView.Here is my code:
Dim str As String
Dim str1 As String
Dim str2 As String
Dim str3 As String
Dim str4 As String
Dim str5 As String
str = lstPodaci.TopItem.SubItems(0).Text
e.Graphics.DrawString(str, tableFont, Brushes.Black, X1, Y)
str1 = lstPodaci.TopItem.SubItems(1).Text
e.Graphics.DrawString(str1, tableFont, Brushes.Black, X2, Y)
str2 = lstPodaci.TopItem.SubItems(2).Text
e.Graphics.DrawString(str2, tableFont, Brushes.Black, X3, Y)
str3 = lstPodaci.TopItem.SubItems(3).Text
e.Graphics.DrawString(str3, tableFont, Brushes.Black, X4, Y)
str4 = lstPodaci.TopItem.SubItems(4).Text
e.Graphics.DrawString(str4, tableFont, Brushes.Black, X5, Y)
str5 = lstPodaci.TopItem.SubItems(5).Text
e.Graphics.DrawString(str5, tableFont, Brushes.Black, X6, Y)
How can i get this to print second row?
Please help me!
|