views:

25

answers:

2

I need to add line break after the following in the textbox.

txtBody.Value = "Dear " & Trim(tblProperty(0).Item("Contact")) & ","

I've tried so far 'ControlChars.CrLf', ..., 'vbNewLine', 'vbCrLf', ... at the end.

+1  A: 

Try Environment.NewLine

Superstringcheese
A: 

Set textbox property TextMode="MultiLine".

Then try this for example:

txtBody.Value = "Dear " & "\n" & "Dear".

ASergan
This displayed as \n .... Environment.NewLine did the trick in vb, thanks for your help.
Codex73