Re: transfer text from label to textbox preserving linebreaks

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



See whether using vbCrLf instead of vbNewLine helps.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Wal" <no_reply@xxxxxxxxxxx> wrote in message
news:jAF7l.7094$cu.0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
(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!!


.



Relevant Pages

  • Re: losing line breaks
    ... If linebreaks aren't being displayed at all, ... increase the height of the datasheet rows to see the text? ... -upgrade to Access 2003 (XML support has improved significantly over ... John Nurick [Microsoft Access MVP] ...
    (microsoft.public.access.conversion)
  • transfer text from label to textbox preserving linebreaks
    ... I want to write the text which appears in a label to a textbox while keeping linebreaks. ... The label caption is written using - ...
    (microsoft.public.vb.general.discussion)
  • transfer text from label to textbox preserving linebreaks
    ... I want to write the text which appears in a label to a textbox while keeping linebreaks. ... The label caption is written using - ...
    (microsoft.public.dotnet.languages.vb)