English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

say for instance i will as the user to write several paragraphs in a textbox, each paragraph will be separated by next line, how do i display the exact text that the user has written in a labe. including the indentions and the nextlines..

i tried label1.text=textbox1.text
however, it combined all the paragraphs into 1 paragraph only. please.. help.

2007-04-15 05:03:13 · 2 answers · asked by entoy 1 in Computers & Internet Programming & Design

im using vb .net 2005

2007-04-15 05:11:30 · update #1

2 answers

I just tried this in VB 2005 exprss without any problem. I defined a multi line text box and placed some content in it hitting the enter button to add lines and adding black lines between to simulat paragraphs. Worked fine when I assigned the textbox.text to a label.

label1.text = textbox1.text

Edit:
Be aware that when copying between text boxes that the textbox doesn't auto size. So if you think you are missing information it may really be that the text box is only showing the first paragraph as it is only sized one paragraph high. Try stretching out the textbox2 height and you should see additional data. You can always use the lable for viewing and copy back into a textbox for editing.

2007-04-15 05:36:29 · answer #1 · answered by MarkG 7 · 0 0

try using only labels and place them together to get a fell that it is a single label but label's borders are invisible in run mode so will work fine or use several textbox and several labels

2007-04-15 12:11:59 · answer #2 · answered by Monish R Nath 1 · 0 1

fedest.com, questions and answers