ListView ColumnHeader.TextAlign can not be set other than Left for Col 1

VB 2005 Beta 2.
When editing the columns in the IDE properties page for a ListView control, I am not able to set the TextAlign property of ColumnHeader1 to anything other than "Left" - for example, "Center" or "Right". It also does not work in code:

ListView1.Columns(0).TextAlign = HorizontalAlignment.Center

Has no affect.

Does anyone know why this might be?

[397 byte] By [Matty4242] at [2007-12-17]
# 1
Just a note, this is still happening in the final release of VB 2005.
Anyone?
Matty4242 at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2

This is by OS (Shell) design. Check out the documentation for the LVCOLUMN structure.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listview/structures/lvcolumn.asp

The leftmost column is always left-justified and cannot be changed.

-mark
Program Manager
Microsoft
This post is provided "as-is"

MarkRideout at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3
Thank you very much for the link. Additionally, in this link there is a statement on how to implement a workaround for this particular requirement under the "Remarks" section. I have tried that work-around and it certainly does work.
Matty4242 at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...