Another rookie question...
I would like to create a text box that allows you to continually append text, and view what you wish via a vertical scroll bar. The best analogy I have is an Instant Messaging window, a la AIM or ICQ.
I'm assuming I would set txtBoxName.ScrollBars to 2-Vertical, and txtBoxName.MultiLine to True.
How do you add text to the text box without overwriting the contents? For instance, if you have a statement txtBoxName.Text = "First Line", how do you avoid clobbering it with another statement txtBoxname.Text = "Second Line"? The only thing I can think of is to embed a return character at the end of each line of text. Is there an easy (or at least elegant!) way to do this?
Thanks much for your help!
-- Miles
![]()


Reply With Quote


Bookmarks