
Multi line column header in VB6
Try
chr(13) - linefeed
chr(10) - newline
NL = chr(13) + chr$(10) ' this is a carriage return
or
NL = chr(10) 'in some cases this is enough
flexGrid.text ="New" + NL + "Column2"
or use the VB constant for newline. I can not find it at this time.
Quote:
> I'm using an MSFlexGrid and have one fixedrow. I would like to have some
> header titles to be multi line. For example:
> column1 New column3
> Column2
> So, in the code, there would be something like this:
> flexGrid.row = 0
> flexGrid.col = 0
> flexGrid.text = "column1"
> flexGrid.col = 1
> flexGrid.text ="New\nColumn2"
> flexGrid.col = 2
> flexGrid.text = "column3"
> However the "\n" doesn't give a new line.
> Is this even possible?
> Sent via Deja.com http://www.deja.com/
> Before you buy.