ListBox.CellAlignmentAt not working for Listbox.CellTypes.Checkbox


Why doesn’t cell alignment work for cells of type checkbox?

I’ve tried the following in the Listbox’s CellBackgroundPaint method:

If row < Me.RowCount Then
Me.CellAlignmentAt(row,0) = ListBox.Alignments.Center
End If

Also, what is the difference between ListBox.ColumnAlignmentAt and ListBox.CellAlignmentAt?

I’m not sure which of the above properties applies to cells of type checkbox and which Event Handler to use.


Docs need to be enhanced.
The usual table behavior of such combined use is: set the COLUMN alignment (default alignment) for ALL CELLS of such column, and later set specific CELL alignments for FEWER CELLS.

thank you for the advice.