This is in continuation of my previous post.
Now, if I change the code as:
TextBox1.Text = "Microsoft" & Chr(13)
TextBox1.Text = TextBox1.Text & "Visual Basic"
MsgBox(TextBox1.Lines(0))
MsgBox(TextBox1.Lines(1))
Now first message box shows "Microsoft" and second message box shows "Visual
Basic". This implies that "Micorsoft" is stored in Line0 and "Visual Basic"
is stored in Line1 of TextBox1.
However on the screen on TextBox1 it doesn't show them on separate line. In
fact both are separated by "|" character.
"I_AM_DON_AND_YOU?" <us**@domain.com> wrote in message
news:OY**************@TK2MSFTNGP09.phx.gbl...
A simple query:
I have a textbox with multiline=true. Also there is a button1. In
button1's click the code written is
textbox1.lines(0) = "Microsoft"
textbox2.lines(1) = "Visual Basic"
Hope you understand what I am trying to achieve. In Textbox1, on line1 I
want to put "Microsoft" and on the second line I want to put "Visual
Basic". However, when I run this code it doesn't work (and raises an execption).
Could you please tell me what's wrong here............and what's the
alternative?
Thanks in advance!