ListBox.ColumnAlignmentAt causes compile error after update to API2

me.ColumnAlignmentAt(2) = ListBox.Alignments.Right
me.ColumnAlignmentAt(3) = ListBox.Alignments.Right
me.ColumnAlignmentAt(4) = ListBox.Alignments.Right
me.ColumnAlignmentAt(5) = ListBox.Alignments.Right

After updating to API2 this line in the opening event of a listbox causes a compiler error:
There is more than one method with this name but this does not match any of the available signatures.
Can anyone help me resolve this?

The error is misleading. If you are using the new DesktopListBox then you need to use DesktopListBox.Alignments.Right

That was it. Thank you.

1 Like