Create mask for rg C#

Asked

Viewed 114 times

0

I wonder if there is any way I can make appear the mask made through the code in my form? And in which way it would be, is not appearing in my form the way I am doing. In case I do not know if I would be putting in the correct position.

if (mtbRG.Text.Length == 9)

{
   mtbRG.Mask = "00.000.000-0";
}
  • I believe that RG would not have a mask, and there are several possible formats. I’ve seen ID that had characters at the end, I’m not sure why, but it did. I believe that RG should be a free field, unlike CPF, for example.

  • I got it. I’m going to do a search thank you

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.