Results 1 to 6 of 6

Thread: Lines property of textbox

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    Lines property of textbox

    Working on an app where I want to print (among other things) the text in a textbox... I am having difficulties reading the individual lines in the textbox... I do the following

    VB Code:
    1. dim strLines() as string
    2.  
    3. strLines = textbox1.Lines

    Now I thought I got a string array representing each of the lines in the textbox, BUT I get only one string with all lines.

    Is there a problem with the new line or something? Or what is the definition of "line" in a textbox? I have the textbox with a size of 136;120 (pretty small)...


    UPDATE: The problem I have is that I have to press "return" in order for a new line to be recognized... But since I have wordwrap property set to true, it should add newline when I type beyond the width of the textbox, yes? Or how can I solve it???


    kind regards
    Henrik
    Last edited by MrNorth; Mar 31st, 2004 at 01:07 AM.

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