textbox line break

keko2004

Active member
Joined
Feb 13, 2006
Messages
39
Location
Middle Village, NY
Programming Experience
1-3
hey guys. i need to display some help information for my project in school. now should i use a textbox? if so, how do i make it so that i can break the lines when i want them too. for example.

if i want to make it look like this

Example:
"hello this is just an
example to show u guys".

instead of this:

Example:"hello this is just an example to show u guys"

how can i go about manually breaking textbox lines. and should i even be using a text box? thanks
 
I suppose there is a number of ways to do this. You can identify any part of any string using the indexof method. There is also a split method and a substring method, or if yuo want to get fancy there's the regex class but i'd leave that for now. As its homework i'm not going to show you any code but i would make a start by checking out the methods i have mentioned.
 
I don't think so, no. I believe \n in java refers to a whitespace character, but i don't think there is any such function in vb.net outside of the Regex Class.
 
\r\n
"Environment.Newline" is a shortcut for this string :)
You can also use the vbNewline constant.
 
Back
Top