Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FlexGrid MultiLine Cell

Status
Not open for further replies.

jpreciado

MIS
Feb 7, 2004
36
MX
I'm looking how the content of a cell be shown in more than 1 line I tried This:
FlexGrid.TextMatrix(X,Y) = "string1" & Chr(13) & string2
FlexGrid.TextMatrix(X,Y) = "string1" & vbRet & string2

but It didn't work

Thanks in advanced
 
jpreciado,
Just a shot but did you try
FlexGrid.TextMatrix(X,Y) = "string1" & vbCrLf & string2?

Scoty ::)

"Learn from others' mistakes. You could not live long enough to make them all yourself."
-- Hyman George Rickover (1900-86),
 
FlexGrid.TextMatrix(X,Y) = "string1" & vbCrLf & string2
doesn't work.
thanks
 
You can use :

fg1.TextMatrix(1, 1) = "fred" & vbCrLf & "joe"

but you need to set the fg1.WordWrap property to true and make sure that the row height is resizable (or already big enough for 2 lines)

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'

for steam enthusiasts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top