Click here to Skip to main content
16,014,589 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: speed up Pin
Brian Delahunty1-Jun-02 9:33
Brian Delahunty1-Jun-02 9:33 
GeneralRe: speed up Pin
pnpfriend1-Jun-02 9:47
pnpfriend1-Jun-02 9:47 
GeneralRe: speed up Pin
Brian Delahunty1-Jun-02 10:05
Brian Delahunty1-Jun-02 10:05 
GeneralRe: speed up Pin
pnpfriend1-Jun-02 10:39
pnpfriend1-Jun-02 10:39 
GeneralRe: speed up Pin
Brian Delahunty1-Jun-02 10:35
Brian Delahunty1-Jun-02 10:35 
Questiongeting start and end address of a running process? Pin
hwnd1-Jun-02 6:26
hwnd1-Jun-02 6:26 
AnswerRe: geting start and end address of a running process? Pin
Mike Nordell1-Jun-02 7:02
Mike Nordell1-Jun-02 7:02 
GeneralLimiting Characters in Edit Box :: MFC Pin
valikac1-Jun-02 5:30
valikac1-Jun-02 5:30 
Hi.

I would like to limit the number of characters a user make enter at any given time to a finite integer. For example, let say I have an edit box in a dialog box for entering zip code. I would like to limit the number of characters to *exactly five*.

I have tried using DDV verification feature in a dialog box. However, I found that the user can overflow the edit box. For example:

limit: 500
User: 500000

If the user overflow the edit box, for DDV will consider the data entered as being valid. I believe the problem has something to do with overflowing a datatype.

Nonetheless, what is the best way to limit the number of characters/digits entered in an edit box?

Thanks,
Kuphryn
GeneralRe: Limiting Characters in Edit Box :: MFC Pin
Joaquín M López Muñoz1-Jun-02 5:38
Joaquín M López Muñoz1-Jun-02 5:38 
GeneralRe: Limiting Characters in Edit Box :: MFC Pin
dlhson1-Jun-02 5:49
dlhson1-Jun-02 5:49 
GeneralRe: Limiting Characters in Edit Box :: MFC Pin
valikac1-Jun-02 6:15
valikac1-Jun-02 6:15 
GeneralRe: Limiting Characters in Edit Box :: MFC Pin
Michael P Butler1-Jun-02 7:22
Michael P Butler1-Jun-02 7:22 
GeneralSolution Pin
valikac1-Jun-02 7:15
valikac1-Jun-02 7:15 
QuestionUsing Unicode in Editbox, ListControl and CString ? Pin
dlhson1-Jun-02 4:09
dlhson1-Jun-02 4:09 
AnswerRe: Using Unicode in Editbox, ListControl and CString ? Pin
Paul M Watt1-Jun-02 18:22
mentorPaul M Watt1-Jun-02 18:22 
QuestionGet char pos of RichEditControl ? Pin
dlhson1-Jun-02 3:58
dlhson1-Jun-02 3:58 
AnswerRe: Get char pos of RichEditControl ? Pin
Ed Gadziemski1-Jun-02 10:56
professionalEd Gadziemski1-Jun-02 10:56 
GeneralRetrieve "Data traffic" Pin
XAlien1-Jun-02 3:16
XAlien1-Jun-02 3:16 
GeneralRe: Retrieve "Data traffic" Pin
Paul M Watt1-Jun-02 8:33
mentorPaul M Watt1-Jun-02 8:33 
GeneralRe: Retrieve "Data traffic" Pin
XAlien1-Jun-02 23:05
XAlien1-Jun-02 23:05 
GeneralListBox controls Pin
1-Jun-02 3:19
suss1-Jun-02 3:19 
GeneralRe: ListBox controls Pin
XAlien1-Jun-02 3:21
XAlien1-Jun-02 3:21 
GeneralRe: ListBox controls Pin
1-Jun-02 6:00
suss1-Jun-02 6:00 
GeneralRe: ListBox controls Pin
XAlien1-Jun-02 23:02
XAlien1-Jun-02 23:02 
GeneralDifferent results with debug and release version Pin
George Ma1-Jun-02 2:33
George Ma1-Jun-02 2:33 

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

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