Hi Javier,
Thanks for bringing this to our attention. IU have notified the developmentteam in this regard, and will try our very best to resolve this issue at the earliest.
For now, you could derive from the MaskedEditBox control and override its ProcessCmdKey method as shown in the code snippet below :
public class CustomMaskedEditBox : MaskedEditBox
{
public CustomMaskedEditBox() : base() {}
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (this.ReadOnly == true)
{
if (keyData == Keys.Delete)
{
//do nothing
return true;
}
else
return false;
}
else
return base.ProcessCmdKey (ref msg, keyData);
}
}
The
complete sample illustrating this is attached here. Please refer to it and let me know if this works for you. We appreciate your feedback, and thanks for choosing Syncfusion.
Regards,
Guru Patwal
Syncfusion, Inc.