How do you auto highlight text in a textbox control when the control gains focus.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Carriage Return (ASCII chr 13) is missing from tex
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
If you want to do it for your whole WPF application you can do the following: - In the file App.xaml.cs
It is very easy to achieve with built in method
SelectAll
Simply cou can write this:
And everything in textBox will be selected :)
In window form c#. If you use Enter event it will not work. try to use MouseUp event