By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,077 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,077 IT Pros & Developers. It's quick & easy.

Display text

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.
--------------------
Content-Class: urn:content-classes:message
From: "Troy Wilson" <tk****@hotmail.com>
Sender: "Troy Wilson" <tk****@hotmail.com>
Subject: Display text
Date: Fri, 21 Nov 2003 13:51:07 -0800
Lines: 6
Message-ID: <02****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcOweZGB74iiy3eCSy2EbojDZ6o3qA==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.languages.vb
Path: cpmsftngxa07.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:158158
NNTP-Posting-Host: tk2msftngxa12.phx.gbl 10.40.1.164
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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.


Nov 20 '05 #2

P: n/a
* "Troy Wilson" <tk****@hotmail.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

P: n/a
* Jo********@online.microsoft.com (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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.