Langleyben Leon - WinForm TextBox.AppendText
"Apparently this point is commonly overlooked:
Avoid using TextBox.Text += ... construct to build long content.
Use TextBox.AppendText instead. AppendText internally set selection after last character in Textbox and then replace selection with supplied text using SendMessage API. This method is more effective by order of multitude. Note that after AppendText invocation textbox scrolled down to the last line. This is making difference in textboxes with long content (and scrollbar)." (Leached in full)
sigh... So much to learn...
The TextBox.AppendText sounds like a very cool method, a perfect way to streamline one of my common textbox usage senarios ...
I think I need to get a USB jack installed in my head so I can upload all this crud directly into my brain. A mini-USB jack isn’t too big... ;)
Technorati Tags: WinForm, Textbox.AppendText, .Net
No comments:
Post a Comment
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...