Results 1 to 11 of 11

Thread: help of visual basic form

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2010
    Posts
    68

    help of visual basic form

    i need a tool which can view .frm .frx file,i can not open frm file via vb6,i want to recover form coding atleast.please help me how i solve this
    reply on various posts make you a power poster,may not being u a helpful poster,if u dn't understand how u help then dn't need to reply,it increases ur post count,but decreases ur worthness

  2. #2
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: help of visual basic form

    Since FRM files are just plain ASCII text files, you can open them in any suitable text editor (such as Notepad). You can extract binary data from FRX files using any of these codes from PSC. There are most likely other FRX viewers/extractors elsewhere; just search for them.
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: help of visual basic form

    you can't open the frx file as it is binary (icons, pictures, etc)... but you can drag the frm file into notepad and open it that way... which brings up the question: why can't you open it in VB6?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2010
    Posts
    68

    Re: help of visual basic form

    bro,form is corrupted by sudden pc shut down,i opened .frm via notepad,its blank although it shows 86kb,i think u understand how much code written there,i need code of that form atleast,many days ago i saw a tool which can read project file as like vb6.exe but i can not find that in google search now and i m so upset about it
    reply on various posts make you a power poster,may not being u a helpful poster,if u dn't understand how u help then dn't need to reply,it increases ur post count,but decreases ur worthness

  5. #5
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: help of visual basic form

    From Form File Loading Errors:

    Quote Originally Posted by MSDN
    When Visual Basic loads a form into memory, it first converts the form to binary format. When you make changes to the form and save the changes, Visual Basic rewrites the file in ASCII format.
    When VB saves a FRM file, it first fills it with spaces before writing the actual code. I'm afraid VB never got the chance to completely save your FRM file when your PC shut down. In that case, unless you had a backup somewhere, your code is gone forever. File recovery tools won't help much because all they'll see are the blank spaces.

    This also happened to me before several times already. Now, I always make a backup of all the project files under a "BAK" subdirectory whenever I save the project prior to running in the IDE. In addition to that, I also embed the whole project as resources in the compiled exe for redundancy.
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  6. #6
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: help of visual basic form

    Quote Originally Posted by robi_thakur View Post
    ... many days ago i saw a tool which can read project file as like vb6.exe but i can not find that in google search now ...
    Try:

    Visual Basic Decompilers

    VB Decompiler

    VBReFormer
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  7. #7
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: help of visual basic form

    Quote Originally Posted by Bonnie West View Post
    In addition to that, I also embed the whole project as resources in the compiled exe for redundancy.
    That's nifty, Bonnie. As everything I write is for me, I think I might start doing that as well.

  8. #8
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: help of visual basic form

    try a system restore

  9. #9
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: help of visual basic form

    Quote Originally Posted by ladoo View Post
    try a system restore
    Unfortunate, a system restore does not affect user saved files such as documents, pictures, frm, bas etc.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  10. #10
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: help of visual basic form

    Quote Originally Posted by Nightwalker83 View Post
    Unfortunate, a system restore does not affect user saved files such as documents, pictures, frm, bas etc.
    if the person dont have no choice what other recommendation u can provide ?

    it worked for me i have a project size of 10 mb and it got currupted only way was system restore

    by the way whats with rep thing lol

  11. #11
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: help of visual basic form

    Quote Originally Posted by ladoo View Post
    it worked for me i have a project size of 10 mb and it got currupted only way was system restore
    Well, the fact that System Restore worked for you means it was a system problem.

    As soon as you open SR you see a message stating

    System Restore does not affect any of your documents, pictures, or other personal data.

    Edit:

    I think you mean Backup and Restore which, is a different program found under "System and Security" in the Windows 7 Control Panel.
    Last edited by Nightwalker83; Jun 18th, 2013 at 07:53 PM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

Posting Permissions

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



Click Here to Expand Forum to Full Width