Sure it can be done. Just do a keyword search in her for one of the solutions that allow you to intercept the creation of the Input box (two types; Hypetia's favoured timer technique, and my favoured CBT Hook technique). Either way you get the handle of the window being created, and can send it a message. In this case you want to send the EM_LIMITTEXT message, e.g.
What level of VB knowledge are we pitching to? I ask because:
a) almost all the coding you need is already available in fulldetail in this forum. You just need to do a search
b) having been given the exact Window message you need to deal with (which differs from the message in the examples in this forum which tend to dwell on masking password characters), you should be able to get the necessary help info from MSDN, and the correct VB declarations from the API Text Viewer included with VB
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.