ListView Column Header and ListItems Alignments

  • Thread starter Thread starter K
  • Start date Start date
K

K

Hi all, I am working in VB6. Below code not only center align the
listview column header caption (except first column) but also center
align the list items or data in those columns. Is there way that I
can left align the listview column header captions and right align the
list items.


Private Sub SetupVRCols()

With Me.ListView1
..ColumnHeaders.Clear
..ColumnHeaders.Add , , "TransNo", 1600
..ColumnHeaders.Add , , "Pfolio", 760, lvwColumnCenter
..ColumnHeaders.Add , , "Ac", 1200, lvwColumnCenter
End With

End Sub
 
Back
Top