Hi Belal,
I am not good at all in Visual Basic. But I found this out for you.
In VB, for a text box, its attributes can be changed only in one of the two ways, by setting the scrollbar and multiline properties. And this is done only from the design views.
Setting MultiLine to True lets a text box to accept or display multiple lines of text at the VB application run time. And a multiple-line enabled text box automatically manages word wrap as long as there is no horizontal scroll bar. The ScrollBars property is set to 0-None by default.
Automatic word wrap saves the user the trouble of inserting line breaks at the end of lines. When a line of text is longer than what can be displayed on a line, the text box wraps the text to the next line.
Now for what you want to do, line breaks cannot be entered in the Properties window at design time. Within a procedure, you will have to create the line break manually by using ANSI Chr(10) for LF and Chr(13) for CR. But it seems like this is not working for you. Did you try? If it is not working then I think, you are using Visual Basic 6.0. Here is another way.
You can also use the constant vbCrLf to insert a carriage return/linefeed combination. In the example below, the following event procedure puts two lines of text into a multiple-line text box (Text1) when the form is loaded:
Sub Form_Load ()
Text1.Text = "Here are two lines" _
& vbCrLf & "in a text box"
End Sub
vbCrLf also works on systems where a NewLine is not CrLf.
There are other methods also. I do not know if they work on all versions of VB and which one is right for what. Like:
'Environment.NewLine', 'ControlChars.NewLine',
'vbNewLine'
I think oneof them will work for you.
