Results 1 to 3 of 3

Thread: very newbie question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274

    Smile

    I want to fill a MSFlexiGridCell with more than one line of text. Ho can I do this?

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ....

    Do you mean two lines separated with <Enter> ?

    Try this:

    String1 = String2 & vbKeyEnter (or vbKeyReturn, I don't remember...) & String3

    Grid.Cell... = String1

    The imp. thing is you put the newline character inside the string and then display it into the grid.

    Does it work?

    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  3. #3
    Addicted Member jcouture100's Avatar
    Join Date
    Aug 1999
    Posts
    141
    You have to make sure that WordWrap is set to True for the MSFlexGrid and then populate the grid. If you want to control where the line breaks occur in the text, use the vbCrLf where necessary.

    Code:
    strTemp = "This is Line 1." & vbCrLf & "This is Line 2."
    Hope this helps.
    JC

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width