transfer text from label to textbox preserving linebreaks

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!!
 
C

Cor Ligthert[MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top