|
-
Dec 2nd, 1999, 10:38 PM
#1
Thread Starter
Member
Is it possible to append to a multiline textbox during runtime? I want to send periodic messages to the textbox, adding lines as the program is run.
Right now, it just overwrites when I use:
Text2.Text = "some comment"
Thanks.
-
Dec 2nd, 1999, 10:41 PM
#2
Sure!
Text1.Text = Text1.Text & vbCrLf & "New Text"
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
-
Dec 2nd, 1999, 10:44 PM
#3
Thread Starter
Member
-
Dec 3rd, 1999, 03:43 AM
#4
If the Text you display in the Textbox is going to build up to quite a size, you may want to consider adding text using the SelText Property instead.
This allows you to insert text into the Textbox, rather than redefining the entire contents, making it much quicker, eg.
Text1.SelText = "Some Additional Text"
SelText inserts text at the Caret position, so if it's adjustable by the user, you may want to make sure the Caret is at the end of the Textbox before using the SelText Property, ie. Text1.SelStart = Len(Text1)
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Dec 3rd, 1999, 03:54 AM
#5
Thread Starter
Member
Thanks for the additional method! (The loglines do add up pretty large in size)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|