Tag Archives: TextBox

Make a TextBox convert text into proper case in C#

The example Convert a string to proper case (title case) in C# uses a CultureInfo object’s TextInfo property to convert text into proper case (or title case). There are a couple of tricks and potential problems that you need to … Continue reading

Posted in controls, strings | Tagged , , , , , , , , , , , , , | Leave a comment

Set tab positions inside a ListBox or TextBox in C#

This example demonstrates three methods for aligning values in columns, two of which set tab positions in a ListBox or TextBox. To set tabs in a ListBox, you need to set the control’s UseCustomTabOffsets property to true. Then get the … Continue reading

Posted in controls | Tagged , , , , , , , , , , , , | 1 Comment