Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3782044
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:01:40+00:00 2026-05-19T11:01:40+00:00

In a Windows Forms application, I add a MaskedTextBox to the form. Clicking the

  • 0

In a Windows Forms application, I add a MaskedTextBox to the form. Clicking the ellipsis on the Mask property opens up the Input Mask dialog. In it, I set the mask to a short date, leaving the Use ValidatingType checkbox checked.

This results in the next two lines in the designer generated code;

this.maskedTextBox1.Mask = "00/00/0000";
this.maskedTextBox1.ValidatingType = typeof(System.DateTime);

Now, when I want to revert back this change, I’d expect to be able to right click on the Mask property of the control, and select Reset. Doing that does reset the Mask property itself, but leaves the ValidatingType property untouched. Since the ValidatingType property itself isn’t visible in the designer, there doesn’t seem to be a way to reset this property using the Designer.

I’ve also tried going back into the Input Mask dialog box and setting the mask to <Custom>, which doesn’t have a validating type, but it still keeps the existing ValidatingType in the designer generated code.


So, is there a way to reset the ValidatingType property using the Designer? Or do I actually have to go into the designer generated code and make the change myself?


Update

Based on Hans’ answer, I found another way. After right clicking on the Mask property and choosing Reset, only the Mask property itself gets cleared. The Input Mask Dialog you get after clicking the ellipsis sets both the Mask and the ValidatingType properties.

So… using Reset isn’t good enough. After using Reset, you have to go into the Input Mask dialog again and click Ok.

I still feel it is a bit buggy that the Reset doesn’t reset the ValidatingType, while the dialog opened up by the ellipsis in the same property does set it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:01:40+00:00Added an answer on May 19, 2026 at 11:01 am

    Just uncheck the “Use ValidatingType” checkbox in the task dialog.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a Windows Forms application with two ListBox controls on the same form.
I have a fairly simple Windows Forms application that I would like to add
I have a Windows::Forms application and I want to add a custom control to
How can I add the the sleek On/Off control to a Windows Forms application?
Our Windows Forms application by default saves data files in a user's 'My Documents'
In a C# windows forms application. I have a splash screen with some multi-threaded
I'm writing a Windows Forms application which is supposed to play three sound files
I'm writing a Windows Forms Application in C#.NET On startup, the application displays a
I'm starting a Windows Forms application from the command promt and I need to
I'm developing an Windows Forms application that requires me to call a separate program

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.