Edit: Reivised as @Hans Passant pointed out:
You are confusing vbLeftJustify
with flexAlignLeftTop
If you are using an MSFlexGrid pass the value "0" for the flexAlignLeftTop
as per here:
ColAlignment, ColAlignmentBand, ColAlignmentHeader Properties (MSHFlexGrid)
If you are using a DataGridView:
There is no vbLeftJustify
in vb.net in order to align the DataGrid properly you will need to set the DefaultCellStyle
of the Column header like so:
Dim DataGridViewCellStyle1 As DataGridViewCellStyle = New DataGridViewCellStyle()
DataGridViewCellStyle1.Alignment = DataGridViewContentAlignment.MiddleLeft
Me.Column1.DefaultCellStyle = DataGridViewCellStyle1