user1370685
user1370685

Reputation: 15

Highlight text in two textboxes at the same time

in order to select text in a textbox you need to focus into it. The problem is, after focusing and selecting the second textbox, it deselects the text in the first textbox.

Does anyone have a workaround for this?

Any help would be much appreciated.

Upvotes: 0

Views: 431

Answers (1)

Olivier Jacot-Descombes
Olivier Jacot-Descombes

Reputation: 112632

Set the HideSelection property of the TextBox to false.

myTextBox.HideSelection = false;

Of cause you can do it in the properties window as well (in the Behavior section).

Upvotes: 2

Related Questions