Showing posts with label Working With Strings: The Selection Property. Show all posts
Showing posts with label Working With Strings: The Selection Property. Show all posts

Working With C# Strings: Selection Property

This Program in C# 5 shows the use of the Selection property of the TextBox control. This property is accompanied with the Select() function which must be used to reflect changes you have set to the Selection properties. As you can see, the form also contains two TrackBars. These TrackBars actually visualize the Selection property attributes of the TextBox. There are two Selection properties mainly: Selection Start & Selection Length. These two properties are shown through the current value marked on the TrackBar.