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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Getting unmasked text from MaskedEditBox

Thread ID:

Created:

Updated:

Platform:

Replies:

40443 Feb 2,2006 07:56 PM UTC Jul 4,2006 07:41 AM UTC WinForms 3
loading
Tags: Tools
Mark Atkinson
Asked On February 2, 2006 07:56 PM UTC

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 03:07 PM UTC

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 24, 2006 12:27 AM UTC

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 07:41 AM UTC

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.

CONFIRMATION

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.

Warning Icon 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.Close Icon

;