Use the following code snippet:
this.radMaskedEditBox1.Mask = "99/99/99/99/99/99";
this.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
this.radMaskedEditBox1.PromptChar = ' ';
((StandartMaskTextBoxProvider)this.radMaskedEditBox1.MaskedEditBoxElement.Provider).TryGetStandardProvider().InsertKeyMode = InsertKeyMode.Overwrite;
When the cursor is just before the last "/", if you enter a number, then the cursor does not move after this last "/". Then entering another digit overwrites the last digit typed.
I have also updated your Telerik points.
Currently, the possible solution that I can suggest is to use the already found KeyPress event handling as follows:
private void radMaskedEditBox1_KeyPress(object sender, KeyPressEventArgs e){ if (!System.Text.RegularExpressions.Regex.IsMatch(e.KeyChar.ToString(), "[0-9]")) return; if (radMaskedEditBox1.SelectionStart.Equals(radMaskedEditBox1.Mask.LastIndexOf('/'))) radMaskedEditBox1.SelectionStart++;}
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik