To get value as it is appear in the MaskedTextBox

//This is statement is used to get provider that we set to MaskedTextBox
MaskedTextProvider masked = txtproxyaddress.MaskedTextProvider;

//To retrive text
string rawText = masked.ToString(true, false, true, 0, maskedTextProvider.Length);

Related Articles

Write a Console Application for beginners

.NET framework contains Console application,Windows applications usually called as Win Apps,Web applications,Mobile applications,Web Services.Let us know how to write a simple Hello World using Console Application in the Visual Studio.NET framework tool 2008.

More articles: Masked textbox masked textbox currency Windows application


No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: