Click here to Skip to main content
Click here to Skip to main content

Advanced Numeric Edit Control

, 2 Dec 2001
Rate this:
Please Sign up or sign in to vote.
An edit control that provides formatting and validation number
<!-- Download Links --> <!-- Article image -->

Sample Image - XRNumericEditCtrl.jpg

<!-- Add the rest of your HTML here -->


The CXrNumericEdit class is derived from the normal CEdit class.

To use this class

  • Add the CXrNumericEdit source file to project.
  • Add standard edit control
  • Change CEdit class to CXrNumericEdit
        //Dialog Data
    	CXrNumericEdit	m_ctrlPositiveValue;

To get and set the value in the CXrNumericEdit control use the DDX functions.

void CNumericEditDlg::DoDataExchange(CDataExchange* pDX)
    DDX_Text(pDX, IDC_POSITIVE_SAMPLE, m_dbPositiveValue);

Thanks to

  • Randy More for 'All you ever wanted to know about the Clipboard'
  • Ian J Hart by Number, Currency, Percentage Edit Control
  • Dundas Software for the Masked Edit Control


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
Cuba Cuba
No Biography provided

Comments and Discussions

GeneralOh, my god! No Any Note Pinmemberfishyoungman15-Jan-13 16:51 
GeneralNegative value flaws PinmemberRaul Sobon19-Dec-07 20:17 
GeneralA Bug! PinmemberAli Khanlarkhani1-Dec-07 22:10 
GeneralCreating the DLL Pinmemberkevinlkingma22-Nov-06 3:46 
GeneralLimitText( nMax ) is invalid Pinmemberallehiman30-May-06 19:19 
Questioncan I mention your name in my app? PinmemberMihai Moga12-Apr-06 0:01 
GeneralRegional Settings PinmemberJDonovan20-Nov-03 14:38 
GeneralRe: Regional Settings PinmemberMátyásföldi Imre2-Oct-07 0:24 
GeneralError with Buddy Control PinmemberJDonovan20-Nov-03 6:45 
GeneralThere is also a bug... Pinmembersoftyan8-Oct-03 1:03 
GeneralCan't Properly Set Sel Pinmemberforrest.mao28-May-03 18:30 
GeneralSuggestion PinmemberStlan27-Jan-03 22:12 
QuestionA bug? PinsussAnonymous9-Oct-02 7:59 
GeneralCreate PinmemberAnonymous22-Feb-02 3:50 
I can't use the Create()function to create this edit control at run time.
Please help me!!
Blush | :O
GeneralRe: Create Pinmemberjmarcos10-Sep-02 20:16 
GeneralMissing header PinmemberJohn P. Curtis3-Dec-01 20:17 
GeneralRe: Missing header Pinmemberthierry3-Dec-01 22:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150414.1 | Last Updated 3 Dec 2001
Article Copyright 2001 by ramarez
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid