Closed Thread
Results 1 to 3 of 3

Thread: Edit VB5/6 TextField Maxlength

  1. #1
    Exuro is offline Newbie
    Join Date
    Sep 2008
    Posts
    2
    Rep Power
    0

    Edit VB5/6 TextField Maxlength

    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...

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Exuro is offline Newbie
    Join Date
    Sep 2008
    Posts
    2
    Rep Power
    0

    Re: Edit VB5/6 TextField Maxlength

    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.

  4. #3
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Edit VB5/6 TextField Maxlength

    Glad you got it.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sum of table rows will appear in a textfield
    By newphpcoder in forum PHP Development
    Replies: 1
    Last Post: 12-14-2010, 10:02 PM
  2. tags in textfield
    By LevonNikox in forum JavaScript and CSS
    Replies: 0
    Last Post: 06-10-2009, 02:41 AM
  3. ***Textfield SELECT INSERTION HELP
    By seyz4all in forum PHP Development
    Replies: 7
    Last Post: 08-15-2008, 09:43 AM
  4. How Upload 2 picture file with 2 textfield???
    By joola in forum PHP Development
    Replies: 1
    Last Post: 07-09-2008, 05:40 AM
  5. Validating a textfield once a checkbox is ticked
    By MAC in forum PHP Development
    Replies: 1
    Last Post: 05-22-2007, 10:14 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts