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:
dim strLines() as string 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




Reply With Quote