Text Field in MFC
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Can We limit the Number of characters entered in to a text field in MFC? i.e. I've displayed the characters entered into a textfield to the status bar bane. But if I enter more than 80 characters, an exception is thrown. How do I limit the characters to 80?
-
Can We limit the Number of characters entered in to a text field in MFC? i.e. I've displayed the characters entered into a textfield to the status bar bane. But if I enter more than 80 characters, an exception is thrown. How do I limit the characters to 80?
you can set the limit of text field using
CEdit::SetLimitText(UINT nMax)
Mukesh Kumar Software Engineer