Tag Archives: tabs

Write a TreeView into a tab-delimited file in C#

The example Load a TreeView from a tab-delimited file in C# shows how to load a TreeView control from a file. This example shows how to do the converse: write a TreeView control’s values into a file. The following SaveTreeViewIntoFile … Continue reading

Posted in algorithms, controls, files, recursion | Tagged , , , , , , , , , , , | Leave a comment

Set RichTextBox tab stops in C#

You can set different RichTextBox tab stops for different parts of a RichTextBox control’s text. This example uses the following code to set tabs for the whole control and then adds some text to it that includes tabs. // Set … Continue reading

Posted in controls | 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