DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Scroll Winforms Textbox To Last Line

12.01.2009
| 4284 views |
  • submit to reddit
        The text wrap property of the textbox must be set to false. And both scrollbars should be enabled.
txtOutput.Select(txtOutput.Text.Length - 1, txtOutput.Text.Length - 1);
txtOutput.ScrollToCaret();