In the office I've been working in the secretary has this old program someone wrote in VB5/6 to keep track of a bunch of information. There's a "name" field that has a maxlength of 5, which is really problematic for unicode characters since they're double-width and that means you can only enter 2.5 characters... I think we may be able to dig up the old source code from somewhere and maybe get our hands on a copy of vb5/6, but all we have right now is VB.Net, so that's not working very well...
So, my question to you is:
Is there any way to hex-edit or something and just change that *single* maxlength value on that *one* textfield? I was thinking that maybe I could track the component location with Spy++ or something, but I have no idea what I'd do from there...
I resolved the problem. I tried using VB Decompiler 5 Pro, but it didn't decompile all of the form information (there were like 10 tabs on the form, and it only decompiled 1 of them I think), so I couldn't find the text-fields I was looking for to patch the data.
I ended up just writing another "dummy" program in VB with 9999 as the maxlength of a text field, then opened it with a hex editor (010 Editor to be exact) to find out how the maxlength property is stored (the number 9999 doesn't come up very often, so I could just do a search and it popped right up!), and then I was able to find it again in our original program and overwrite it to 0 (no maxlength) instead of 3.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks