+ Reply to Thread
Results 1 to 3 of 3

Thread: Edit VB5/6 TextField Maxlength

  1. #1
    Newbie Exuro is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    2

    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. #2
    Newbie Exuro is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    2

    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.

  3. #3
    Xav
    Xav is offline
    Code Slinger Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav's Avatar
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,210
    Blog Entries
    13

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. How Upload 2 picture file with 2 textfield???
    By joola in forum PHP Forum
    Replies: 1
    Last Post: 07-09-2008, 07:40 AM
  2. Error in Edit plz help !!!!!!
    By Magic_PHP in forum PHP Forum
    Replies: 14
    Last Post: 02-22-2008, 08:22 AM
  3. Edit a Microsoft Agent
    By r1card0 in forum General Programming
    Replies: 0
    Last Post: 03-11-2007, 02:15 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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