The obvious solution:
Generate a random number between 1 and 10 (or 0 and 9) using
Random.Next[
^], after that switch by generated number and call
Focus[
^] or
Select[
^] method for the chosen
TextBox
.
[TIP]
If you keep your
TextBox
references in array or list the switch statement will be replaced with a one-line indexing in that array. :)
[/TIP]