transfer text from label to textbox preserving linebreaks

  • Thread starter Thread starter Wal
  • Start date Start date
W

Wal

(vb6) I want to write the text which appears in a label to a textbox
while keeping linebreaks.

The label caption is written using -

[text] & vbnewline & [text] & vbnewline & [text]

but

textbox1 = label1

gives me the text seperated by "|" all on one line
(even though the textbox is set multiline at design time).

Interestingly

msgbox label1

displays the text with linebreaks correctly.

Any ideas. Something so simple is baffling me!!
 
Wal,

VB6 is very old and not working with dotNet. This is a newsgroup for dotNet,
there exist still a large community for VB6
You find them in the microsoft.public.VB.general.discussion newsgroup.

Cor
 
Back
Top