Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB4,VB5,VB6
Expertise: beginner
Sep 25, 1999

Append a string to a textbox quickly and without flickering

The usual way to append text to a TextBox or a RichTextBox control is to concatenate the current contents with the new string:

Text1.Text = Text1.Text & newString
Here is a different approach, which is slightly faster and causes less flickering:

Text1.SelStart = Len(Text1.Text)
Text1.SelText = newString 
Francesco Balena
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date