Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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