Victor Charles
asked on
Help with controlling input to textbox using vb.net
Hi,
How do you force users to enter data after 4 spaces from the left of the textbox using vb.net?
Victor
How do you force users to enter data after 4 spaces from the left of the textbox using vb.net?
Victor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
I would like the leave the 4 spaces empty, will then concatenate values from another text box in that space (i.e +055) when i load the form again.
Thanks,
Victor
I would like the leave the 4 spaces empty, will then concatenate values from another text box in that space (i.e +055) when i load the form again.
Thanks,
Victor
ASKER
Hi again,
Is possible to move the text they type by 4 spaces to the right prior to saving the data to an xml file? With such approach they would not encounter any testri tions.
Is possible to move the text they type by 4 spaces to the right prior to saving the data to an xml file? With such approach they would not encounter any testri tions.
If you are going to concatenate something at the beginning of the string, do not care about recording the 4 spaces. Simply add them when you will be ready:
Simply record what the user typed, and when ready, concatenate:
"055" & " " & TextBox1.Text
Simply record what the user typed, and when ready, concatenate:
"055" & " " & TextBox1.Text
ASKER
Got it.
Thanks.
Victor
Thanks.
Victor
ASKER
Thank You.
What are typical entries in these first 4 spaces?
How they are entered in this text box.
If the initial entry is:
txtValue --> [ABCD ]
After user enters 123, for example, the new text value will become: txtValue --> [ABCD123 ]
What is the validation rule for the entry like 123 so that it can be handled at the same time you are forcing user to enter a value after 4 spaces.
What you want has to be handled on exit, for example, under validation rule. Validation will force user to enter the desired value in this text box.
Mike