-
October 13th, 2012, 09:45 AM
#1
How to Set the number of char that input in Edit Box
I do one application ,
I want to define the number of char that user input to Edit Box (Edit box inside Dialoge)
as Example if I want to input in Edit Box 4 digit only say 1223 as example
How can I do this
-
October 13th, 2012, 10:59 AM
#2
Re: How to Set the number of char that input in Edit Box
There's no automatic way unfortunately. You have to capture when changes is made to the edit box and in that handler prevent entering more than 4.
-
October 14th, 2012, 03:23 AM
#3
Re: How to Set the number of char that input in Edit Box
EM_LIMITTEXT
Please read that whole article to understand implications and limitations.
What S_M_A talked about is EN_UPDATE.
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|