Good day.

There are two cases:

  1. When a user clicks a text box on a form, how to make the text stand out?

  2. GridControl (DevExpress) - a grid in which column the user can enter text. By default, there is already the text "0.00". How to make that when the user activates a cell (clicks there with the mouse) all the text stands out?

I suspect that it is done in a similar way.

Thank.


UPD

  1. The solution to the issue was suggested to me by Javascript:

    textBox1.Select (0, textBox1.Text.Length);

  2. ??

    1 answer 1

    Have you tried this option yet?

    Add a textbox click to the event:

    textBox1.SelectionStart = 0; textBox1.SelectionLength = textBox1.Text.Length; 
    • For the input field this method is suitable, thank you. But with the problem of the problem - Leonard Bertone