EagleTempest
Technical User
VB .NET 2005
I want have a textbox formatted based on how many characters have been entered. It's for a project number.
Our project number system is:
0000-000-00
However, for search purposes the user is able to only enter a minimum of the first 4 characters such as D342.
If the user enters D342 that all I want shown - no dashes.
As soon as a user types a fifth character, I want the text in the textbox to now show:
D342-
The problem I'm having it that the cursor moves to the beginning of the text box after I add the dash. I could be using the wrong method for the textbox.
I want have a textbox formatted based on how many characters have been entered. It's for a project number.
Our project number system is:
0000-000-00
However, for search purposes the user is able to only enter a minimum of the first 4 characters such as D342.
If the user enters D342 that all I want shown - no dashes.
As soon as a user types a fifth character, I want the text in the textbox to now show:
D342-
The problem I'm having it that the cursor moves to the beginning of the text box after I add the dash. I could be using the wrong method for the textbox.