sm4rtb0mb
09-04-2003, 11:54 AM
I'm trying to make a multiline text box in my program where upon completion of certain functions, a new line of text is written to the TextBox.. I Tried something like;
Function MessageWindow(TextLine as String)
txtMessages.Text = TextLine & vbCrLf 'or vbNewLine
End Function
Yes, the properties for MultiLine are True, but I am still only getting one line written in the same spot every time. Do I need to make a counter to increment the lines every time the function is called to make it write to the next line? All my searches have pulled up scrolling problems and multiple line writes to text files and I'm at a loss until I can solve this.
Function MessageWindow(TextLine as String)
txtMessages.Text = TextLine & vbCrLf 'or vbNewLine
End Function
Yes, the properties for MultiLine are True, but I am still only getting one line written in the same spot every time. Do I need to make a counter to increment the lines every time the function is called to make it write to the next line? All my searches have pulled up scrolling problems and multiple line writes to text files and I'm at a loss until I can solve this.