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
Printable View
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
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.
EM_LIMITTEXT
Please read that whole article to understand implications and limitations.
What S_M_A talked about is EN_UPDATE.