Display text

  • Thread starter Thread starter Troy Wilson
  • Start date Start date
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.
 
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.
--------------------
 
* "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.
 
* (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.
 
Back
Top