Use the following code:
public RadForm1()
{
InitializeComponent();
this.radMaskedEditBox1.MaskType = MaskType.Numeric;
this.radMaskedEditBox1.Mask = "n3";
this.radMaskedEditBox1.ValueChanging+=radMaskedEditBox1_ValueChanging;
}
private void RadButton1_Click(object sender, EventArgs e)
{
this.Text = this.radMaskedEditBox1.Value + "";
}
private void radMaskedEditBox1_ValueChanging(object sender, CancelEventArgs e)
{
e.Cancel = true;
}
You will notice that even though the ValueChanging event is cancelled, the Value property is still changed.