Is there a way to turn off the selection of the value in a textbox field when you tab to the field?
You can set the SelectionStart property of the textbox to 0 in the form load event or after setting the Text property.
method-id Form1_Load final private. procedure division using by value sender as object e as type System.EventArgs. set textBox1::SelectionStart to 0 set textBox2::SelectionStart to 0 set textBox3::SelectionStart to 0
This is standard behavior of the textbox field. The text selection occurs when you tab into the field the first time but not if you click into the field, etc.
Try the following code:
set textBox1::SelectionStart to 0
set textBox2::SelectionStart to 0
set textBox3::SelectionStart to 0
The easiest way to change the behavior of the textbox all together would be to create your own version of textbox by inheriting from it and then overriding the desired behavior.
There is a good article I found here: