0

I would like to create an input mask which looks like this C-HG__.

But because C represent option character or space in masking (VB.net). It wouldn't let me.

Please assist.

  • possible duplicate of [display letter A in mask maskedtextbox](http://stackoverflow.com/questions/15114466/display-letter-a-in-mask-maskedtextbox) – CoderDennis Jan 30 '14 at 19:56

1 Answers1

2

Try using the escape element: \

MSDN has a fairly nice write-up. Here's an excerpt:

\ Escape. Escapes a mask character, turning it into a literal. "\\" is the escape sequence for a backslash.

Possible duplicate with this question and/or this question.

Community
  • 1
  • 1
Richard Morgan
  • 7,601
  • 9
  • 49
  • 86