Ticket B1963
Visible to All Users

Phone # format in a edit box

created 19 years ago

I want to force Phone & fax # format of (###) ###-#### where the ()- are not stored in the dataset, only displayed on the form. How would I do this?
Thanks

Comments (1)
Stan (DevExpress Support) 19 years ago

    Hi Mike,
    To achieve this task you should adjust the TextEdit properties as shown below:
                textEdit1.Properties.Mask.EditMask = "(###) ###-####";
                textEdit1.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Simple;
                textEdit1.Properties.Mask.SaveLiteral = false;
                textEdit1.Properties.Mask.UseMaskAsDisplayFormat = true;
    BTW: Sorry, but we cannot find any information about you in our customers database. If you are using WinFormsSuite 1.3.0, please create a new account with valid customer information. NOTE: Please use the same information you received from our sales department when registering a new account. Otherwise, you will counted as a trial customer and your trial period wil expire in a month.
    Thanks,
    Stan.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.