Display text

T

Troy Wilson

Is there an existing control for Visual Basic that allows
me to display text in that control, but also lets me append
text to it. The application I have in mind for this
control is something like a status page that updates with
new information without wiping out the previous info.
Thank you.
 
J

Josh Moody [MSFT]

Just use a text box, and add to the text instead of just setting the text.

ie, do
textbox1.text += foo
instead of
textbox1.text = foo

Josh Moody
VSU Team

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
 
H

Herfried K. Wagner [MVP]

* "Troy Wilson said:
Is there an existing control for Visual Basic that allows
me to display text in that control, but also lets me append
text to it. The application I have in mind for this
control is something like a status page that updates with
new information without wiping out the previous info.

For example a textbox. You can call its 'AppendText' method to append
text.
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) (Josh Moody [MSFT]) scripsit:
Just use a text box, and add to the text instead of just setting the text.

ie, do
textbox1.text += foo
instead of
textbox1.text = foo

In VB.NET, I prefer using the '&=' operator when working with strings.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top