i currently have some information in a list view and i have the majority of it printing. My problem is i want my icon to print alongside the row (either a tick or a cross) to say if something is confirmed or not. Also i have troubles getting the headings of the columns to print. This is what i have
[CODE]
Dim g As Graphics = e.Graphics
Dim font As New Font("arial", 12, FontStyle.Bold)
Dim currenty As Integer = e.MarginBounds. Top
For q As Integer = 0 To lv1.Columns.Cou nt
'something here to make the column headings print but i don't know what
Next
For i As Integer = 0 To lv1.Items.Count - 1
Dim item As ListViewItem = lv1.Items(i)
g.DrawString(it em.SubItems(0). Text & " " & item.SubItems(1 ).Text & " " & item.SubItems(2 ).Text & " " & item.SubItems(3 ).Text, font, Brushes.Black, e.MarginBounds. Left, currenty)
currenty += font.GetHeight( )
Next
[CODE]
Cheers in advanced
Truez
[CODE]
Dim g As Graphics = e.Graphics
Dim font As New Font("arial", 12, FontStyle.Bold)
Dim currenty As Integer = e.MarginBounds. Top
For q As Integer = 0 To lv1.Columns.Cou nt
'something here to make the column headings print but i don't know what
Next
For i As Integer = 0 To lv1.Items.Count - 1
Dim item As ListViewItem = lv1.Items(i)
g.DrawString(it em.SubItems(0). Text & " " & item.SubItems(1 ).Text & " " & item.SubItems(2 ).Text & " " & item.SubItems(3 ).Text, font, Brushes.Black, e.MarginBounds. Left, currenty)
currenty += font.GetHeight( )
Next
[CODE]
Cheers in advanced
Truez