We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Getting unmasked text from MaskedEditBox

Thread ID:





40443 Feb 2,2006 02:56 PM Jul 4,2006 03:41 AM Windows Forms 3
Tags: Tools
Mark Atkinson
Asked On February 2, 2006 02:56 PM

This seems like something obvious I''ve missed but what''s the best way to get the value of a MaskedEditBox? For example, a value bound to the control might be "1112223333" and the control uses a mask of "(999) 999-9999" then the Text property is "(111) 222-3333", but is there a property that contains the original "1112223333"?

Anupama Roy [Syncfusion]
Replied On February 6, 2006 10:07 AM

Hi Mark Sorry for the delay in response. You need to set the ClipMode property to ExcludeLiterals inorder to get the value without the Literals. this.maskedEditBox1.ClipMode = Syncfusion.Windows.Forms.Tools.ClipModes.ExcludeLiterals; Please let us know if you need furthur assistance. Thank you for choosing Syncfusion products. Regards, Anu.

Mark Atkinson
Replied On February 23, 2006 07:27 PM

Hi Anupama, That works better except in the case where the underlying value is NULL. In that case the Text value still seems to have the maks chars.

Anupama Roy [Syncfusion]
Replied On July 4, 2006 03:41 AM

Hi Mark, I had overlooked your last post by mistake and my sincere apologies for the delay in response. You can set PaddingCharacter property inorder to specify the character that has to be used instead of mask characters when the mask position has not been filled and the value is NULL.You can leave this property blank if you do not want anything to be displayed as the Text. Thank you for your patience. Best Regards, Anu.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.