Dear all
I have a window application, I'm using text box this text box accept only 6 number but I entering the number by keyboard this validation working fine but enter number PictureBox or button this text box accept more than 6 number. how to fix it.
by Keyboard insert

by button insertion



Nilesh ShahRank #42 · 34.2K reputationPosted Aug 11, 2017, 5:27 AM EDT
first of all, the category of your question should be "windows forms"
Did you set the max length property of the textbox or not?
Rajveer singhRank #1,510 · 1.1K reputationPosted Aug 22, 2017, 8:26 PM EDT
Nilesh Shah Ji,
Bryian TanRank #396 · 6.3K reputationPosted Aug 11, 2017, 5:31 AM EDT
Rajveer singhRank #1,510 · 1.1K reputationPosted Aug 11, 2017, 10:10 PM EDT
Nilesh ShahRank #42 · 34.2K reputationPosted Aug 14, 2017, 4:14 AM EDT
did my solution work or not?
you can post your code for any more help
Nilesh ShahRank #42 · 34.2K reputationPosted Aug 22, 2017, 5:18 AM EDT
Rajveer singh
Did you find any solution? If my answer worked for you, please mark it as "Accepted" and close this question.