transfer text from label to textbox preserving linebreaks

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



(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

  • 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)
  • Re: Password Protect one Field
    ... The label caption reads "Enter Password". ... textbox input mask is set to Password. ... DoCmd.Close acForm, "frmPW" ...
    (microsoft.public.access.gettingstarted)
  • Re: Label Formatting Question
    ... Change the label to a textbox, and change the properties of the textbox to ... Be sure to set its Enabled property to No and its ... ="put the label caption text here" ...
    (microsoft.public.access.formscoding)
  • Re: transfer text from label to textbox preserving linebreaks
    ... Doug Steele, Microsoft Access MVP ... (no private e-mails, please) ... The label caption is written using - ... displays the text with linebreaks correctly. ...
    (microsoft.public.vb.general.discussion)
  • Re: Multiline text box
    ... Using an Access textbox? ... linebreaks in front of the text. ... to the bottom of its window; ...
    (microsoft.public.access.forms)