ListView Column Header and ListItems Alignments

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top