Results 1 to 6 of 6

Thread: Creating textbox content

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2008
    Posts
    8

    Creating textbox content

    Hi
    I have a project which involves calculating text and values and entering the result as a line in a listbox. - works fine.

    My problem is to add the same data into a textbox or similar with each result displayed on a new line.

    Adding chr(13) inserts '|' into the text string but does not insert a new line.

    Any suggestions please

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Creating textbox content

    Change the textbox's MultiLine property to True & also add vertical scrollbar if desired.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

  4. #4
    Member
    Join Date
    May 2009
    Location
    Victoria, BC
    Posts
    36

    Re: Creating textbox content

    vbNewLine
    I think instead of Chr(13) will help.

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Creating textbox content

    yes... you need the vbCRLF (chr(13) + chr(10)) and set the text box to multiline = true

    =tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    New Member
    Join Date
    Dec 2008
    Posts
    8

    Smile Re: Creating textbox content

    Thanks Guys / Gals

    Help much appreciated

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