The |
and _
signs are not the same, you can not just change them, it would cause a confusion in the user who would be using the application.
Sign | means to include and insert characters in front of the cursor.
Sign _ means to insert characters, replacing whatever is in front of the cursor.
Officially it is not possible to change this cursor using properties of the TextBox
control, but there are always those that can lend you a hand. In that link , which redirects you to the CodeProject website, shows how to do the Caret Override of the TextBox. Another useful thing is to programmatically activate the Insert mode of the keyboard, which would display the _ cursor in the TextBox, there is an example, considering% its_ its TextBox: p>
Public Sub TextBox1_Enter(ByVal sender As Object, e As EventArgs) Handles TextBox1.Enter
System.Windows.Forms.SendKeys.Send("{INS}") ' Envia o sinal para ativar a tecla Insert
End Sub
Public Sub TextBox1_Leave(ByVal sender As Object, e As EventArgs) Handles TextBox1.Leave
System.Windows.Forms.SendKeys.Send("{INS}") ' Envia novamente, para desativar o Insert
End Sub
Anyway, there are 1001 ways to do this. At CodeProject site shows many examples of how to customize your TextBox.