Lily P.

asked • 01/12/21

Type in textbox C#

Hi!


I need help with a programming question. I am not sure how to put it into words but Ill try my best:


I want to have a textbox with a text written in it in advance. Let's imagine this is how it looks like:

Enter phone number: (NXX-XXXX)

The paranthesis is the text box in this case.

When the user will type in the number, I want the written text to stay in the empty spaces. Let's pretend Im putting a number in:

Enter phone number: (3XX-XXXX)

Enter phone number: (34X-XXXX)

etc


But I do not know how to make the N and X's disappear as we put a number in it's place and keep the other X's in place?


Thanks

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.