Tag Archives: TextBox

Remove a TextBox control’s context menu in C#

Normally a TextBox control has a context menu that appears when you right-click it, but what if you don’t want that context menu? I mean, really. Am I required to have “Show Unicode control characters” and “Open IME” on every … Continue reading

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

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