You create a Windows application by using the .NET Framework 3.5.
The application captures account information. The account number contains both literal characters and
input characters of the alphanumeric type.
The account number has a predefined format.
You need to ensure that the account number is in the correct format. You also need to ensure that only
input characters are accepted from the user.
What should you do?
A.
Use a MaskedTextBox control. Create a mask to validate the format.
B.
Use a TextBox control. Create a regular expression to validate the format.
C.
Use a RichTextBox control. Create a regular expression to validate the format.
D.
Use a TextBox control. Bind the TextBox control to a string that has the required format.