In Windows Forms and WPF:
textbox.SelectionStart = 0;
textbox.SelectionLength = textbox.Text.Length;
More Related Contents:
- read text file chunks by chunks by scrollbar [closed]
- How do I make a textbox that only accepts numbers?
- How do I get a TextBox to only accept numeric input in WPF?
- Redirect console output to textbox in separate program
- Loop through Textboxes
- How to update textbox in form1 from form2?
- Trying to use the C# SpellCheck class
- Transparency for windows forms textbox
- How do I automatically scroll to the bottom of a multiline text box?
- How to set Z-order of a Control using WinForms
- Bind TextBox on Enter-key press
- The maximum number of characters a TextBox can display
- How to clear the text of all textBoxes in the form?
- how to disable copy, Paste and delete features on a textbox using C#
- Change color and font for some part of text in WPF C#
- How can I unmask password text box and mask it back to password?
- Open file dialog and select a file using WPF controls and C#
- Autoresize textbox control vertically
- A textbox/richtextbox that has syntax highlighting? [C#] [closed]
- Trace listener to write to a text box (WPF application)
- How can I dynamically change auto complete entries in a C# combobox or textbox?
- How to add a line to a multiline TextBox?
- C# wait for user to finish typing in a Text Box
- Paste Event in a WPF TextBox
- Only allow specific characters in textbox
- How to change text in a textbox on another form in Visual C#?
- How to set the value of a textbox textmode=date ASP.NET C#
- Create WPF TextBox that accepts only numbers [duplicate]
- Override Paste Into TextBox
- How to follow the end of a text in a TextBox with no NoWrap?