Connect with Facebook Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Visual Basic Programming

Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-08-2008, 03:55 PM
Newbie
 
Join Date: Sep 2008
Posts: 2
Rep Power: 0
Exuro is an unknown quantity at this point
Default 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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-13-2008, 01:39 PM
Newbie
 
Join Date: Sep 2008
Posts: 2
Rep Power: 0
Exuro is an unknown quantity at this point
Default 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-13-2008, 02:19 PM
Xav's Avatar   
Xav Xav is offline
Code Slinger
 
Join Date: Mar 2008
Location: The North Pole
Posts: 13,210
Blog Entries: 13
Rep Power: 105
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -5. The time now is 09:23 PM.

Freelance Jobs

XML/XSL: Need code for Book with Chapers using XML
Create an XML file for a book of your creation, and a basic CSS file that will format it to display ...
Earn: $40.00


C++/C: Simple firework cue sequencer
What I require is a rework of a simple cue sequencer. I have a piece of hardware (an Arduino boar...
Earn: $50.00


HTML/XHTML: Menu Rework - ASCIIBin
I'm placing this in the HTML/XHTML section of the Freelance site but you are not limited to HTML. Wh...
Earn: $20.00



CodeCall Goal

Goal #1: 1,000 Blogs
Goal #2: 1,000 Wiki Pages
Goal #3: 300,000 Posts
Goal #4: 20,000 Threads
Done: 30%, 23%, 55%, 75%

Ads