Results 1 to 18 of 18

Thread: General VB loading

  1. #1

    Thread Starter
    Junior Member OllieVB's Avatar
    Join Date
    Jan 2006
    Location
    England, UK
    Posts
    24

    Angry General VB loading

    Hi Guys,

    Don't know if you can help but I have a strange problem with my VB6 (Enterprise) installation.

    For some unknown reason, whenever I load a project that I have done on another PC (saved to a floppy disc or USB memory stick) the code displays fine and the program runs perfectly... But the form doesn't come up! When I try to open it, VB crashes...

    Any help would be most appreciated...

    Cheers

    Ollie

  2. #2
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: General VB loading

    first check whether you have all the .frm and .frx files and all the other .bas or additional files in the current directory and then load it.

  3. #3

    Thread Starter
    Junior Member OllieVB's Avatar
    Join Date
    Jan 2006
    Location
    England, UK
    Posts
    24

    Re: General VB loading

    Done that already and all forms are present and correct...

    Please note that if I try to load from the same media on anyone else's PC with VB installed, it works fine. This suggests something to do with my setup but I've tried re-installing VB, in fact 2 different versions (enterprise and professional) and the problem still occurs...
    Ollie
    Mess with the bull... You get the horns!
    ... Windows XP Home SP2
    ... Visual Basic 6 Professional Edition
    ... Office 2003 SP2 Professional Edition

    I will always leave a good response to helpful postings... They are a lifeline!

  4. #4
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: General VB loading

    I do not think that is vb setup problem.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: General VB loading

    If you create the project on your PC is everything OK?

    Does this only happen when you copy a project from somewhere else to your PC?

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: General VB loading

    In addition to Hack's questions - Have you got the same Service Pack as the other machines?

    It sounds like it may be a control issue, and as controls are often fixed/upgraded in service packs it is likely to solve the problem.

    Oh, and welcome to VBForums!

  7. #7

  8. #8

    Thread Starter
    Junior Member OllieVB's Avatar
    Join Date
    Jan 2006
    Location
    England, UK
    Posts
    24

    Re: General VB loading

    Sorry I took so long to respond. Been a busy day!

    Yes, I can create new forms on my PC with no trouble at all...
    Yes, I have the same version and service packs as the PC the form was created on...
    The form, in fact the whole project, was created directly on a USB memory stick to begin with so all associated files were created in the same directory.

    Any other ideas I could possible try?
    Ollie
    Mess with the bull... You get the horns!
    ... Windows XP Home SP2
    ... Visual Basic 6 Professional Edition
    ... Office 2003 SP2 Professional Edition

    I will always leave a good response to helpful postings... They are a lifeline!

  9. #9
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: General VB loading

    I didn't see your answer to Martin's question.

    If you didn't uninstall VB before you tried to re-install it, you could have corrupted the registry. Let us know if you un-installed first.

  10. #10

    Thread Starter
    Junior Member OllieVB's Avatar
    Join Date
    Jan 2006
    Location
    England, UK
    Posts
    24

    Re: General VB loading

    Sorry... Yes, I did a full un-install first.
    Ollie
    Mess with the bull... You get the horns!
    ... Windows XP Home SP2
    ... Visual Basic 6 Professional Edition
    ... Office 2003 SP2 Professional Edition

    I will always leave a good response to helpful postings... They are a lifeline!

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: General VB loading

    Quote Originally Posted by OllieVB
    Sorry I took so long to respond. Been a busy day!

    Yes, I can create new forms on my PC with no trouble at all...
    Yes, I have the same version and service packs as the PC the form was created on...
    The form, in fact the whole project, was created directly on a USB memory stick to begin with so all associated files were created in the same directory.

    Any other ideas I could possible try?
    Open up a standard exe project and remove the default Form1.

    Now, add each form/module from the old project to the one. Add all necessary references and component files. Do a SaveAs to a new folder and use the same project name. Run it to make sure everything works, then close VB.

    Open VB back up again and see if you can load the project.

  12. #12

    Thread Starter
    Junior Member OllieVB's Avatar
    Join Date
    Jan 2006
    Location
    England, UK
    Posts
    24

    Re: General VB loading

    Tried all that. Still didn't fix it!

    Any other ideas? All the files are there and it's opening up on other systems. Are there any conflicts when running later versions of Office with VBA?

    Ollie
    Mess with the bull... You get the horns!
    ... Windows XP Home SP2
    ... Visual Basic 6 Professional Edition
    ... Office 2003 SP2 Professional Edition

    I will always leave a good response to helpful postings... They are a lifeline!

  13. #13
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: General VB loading

    Quote Originally Posted by OllieVB
    Tried all that. Still didn't fix it!

    Any other ideas? All the files are there and it's opening up on other systems. Are there any conflicts when running later versions of Office with VBA?

    What does this have to do with VBA? I thought this was a VB6 project.

  14. #14
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: General VB loading

    Assuming it's still VB:

    Print the .frm files and .vbp file from the project created on the other computer.
    Open a new project on your computer.
    Create the same forms, and put the same controls on them.
    Close (and save) the project.
    Print the .frm files and .vbp file from your project.

    Compare the printouts. The difference (the major one, not the little Height, Left, Top and Width differences) is probably the reason your computer is crashing.

  15. #15

    Thread Starter
    Junior Member OllieVB's Avatar
    Join Date
    Jan 2006
    Location
    England, UK
    Posts
    24

    Re: General VB loading

    Hack,

    Sorry if there was a misunderstanding somewhere but it IS about VB6 and the problems I'm having with it on my PC. I was just asking if installing a later version of other Microsoft products that include VBA could affect it...

    A142,

    Thanks for your input. I've tried this already with a couple of small projects and it works but there are no differences at all. Anyway, when I'm doing several projects on another PC I don't really want to be having to enter all the code twice so I need to find a more permanent fix for the problem. Perhaps I just need a new PC!!!!

    Thanks all...
    Ollie
    Mess with the bull... You get the horns!
    ... Windows XP Home SP2
    ... Visual Basic 6 Professional Edition
    ... Office 2003 SP2 Professional Edition

    I will always leave a good response to helpful postings... They are a lifeline!

  16. #16
    Fanatic Member Slaine's Avatar
    Join Date
    Jul 2002
    Posts
    641

    Re: General VB loading

    Are there any .log files created in the project directories that contain error messages?
    Martin J Wallace (Slaine)

  17. #17

    Thread Starter
    Junior Member OllieVB's Avatar
    Join Date
    Jan 2006
    Location
    England, UK
    Posts
    24

    Re: General VB loading

    No. Can't find any...
    Ollie
    Mess with the bull... You get the horns!
    ... Windows XP Home SP2
    ... Visual Basic 6 Professional Edition
    ... Office 2003 SP2 Professional Edition

    I will always leave a good response to helpful postings... They are a lifeline!

  18. #18
    Addicted Member
    Join Date
    Feb 2006
    Posts
    129

    Re: General VB loading

    hmm.. make sure that you have the correct form on startup.

    Also, is there an error when it crashes?, if so what is it?

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