I am creating a custom MaskedTextBox for Date only. Now i want to hide Mask property of MaskedTextBox from its users.
EDIT:
public class CustomDateMask:System.Windows.Forms.MaskedTextBox
{
public new string Mask
{
get;
private set;
}
public CustomDateMask()
{
this.Mask = @"00/00/2\000"; // this property should not be set by any one now
this.ValidatingType = typeof(System.DateTime); // this property should not be set by any one now
}
}
What should i do so that no one can set this property