Skip to main content
All docs
V25.1
  • Add Credit Card Form

    The Credit Card Form (CreditCardForm) allows you to enter the payment card details. It integrates masking and card number validation.

    Add Credit Card Form - WinForms UI Templates

    What’s Inside

    The Credit Card Form includes the following UI components that ship as part of the DevExpress UI Templates:

    Show Add Credit Card Form

    The following example demonstrates how to show the Credit Card Form. Use the CreditCardForm.Card and CreditCardForm.CardHolder properties to obtain the card details entered by the user.

    using DevExpress.UITemplates.Collection.Forms;
    
    // ...
    using(var frm = new CreditCardForm()) {
        if(frm.ShowDialog() == DialogResult.OK) {
            var card = frm.Card;
            string cardHolder = frm.CardHolder;
            // ...        
        }
    }
    
    See Also