Sunday, August 7, 2016

How to Install VB6 on Windows 7, Windows 8, Windows 10

How to Install VB6 on Windows 7, Windows 8, Windows 10



Here are the steps on how to Install Visual Basic 6.0 on Windows Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10. These Steps are valid for Both 32-Bit and 64-Bit versions.

Installing
  1. Use notepad and make a 0-byte file named 'msjava.dll' in C:\Windows\ to avoid the installation of MS Java
  2. Insert the CD or Open the folder containing VS6
  3. Right Click setup.exe > Run As Administrator
  4. Ignore the two Compatibility warnings by clicking 'Run Program' and continue the installation wizard until setup asks you to customize which components to install
  5. Click the 'Custom' button and uncheck components which you dont want to install. (like VC++, FoxPro. Dont uncheck Database Components)
  6. After Completing the installation, setup will prompt you to install MSDN Library, Install it if you wish, but its very helpful.
  7. Skip the installation of BackOffice, InstallShield etc
  8. Click Finish to complete the setup
  9. Now run VB6 for the 1st time. Right-click Visual Basic 6.0 shortcut from startmenu > Run As Administrator. This will setup all the registry entries.
  10. Close VB6 and Install Service Pack 6. Thats All!
  11. Restart Windows
    Correctly Using VB6 On Windows 7, 8, 10
    1. User Account Control (UAC)
    VB6 needs to be run with administrator rights or it will not work correctly. For this, Turn-off UAC from the control panel.

    Or

    If you prefer not to Turn off UAC then set VB6 to open with Admin Rights.
    For this
    1. Right click VB6 shortcut > Properties > 'Open File Location'
    2. Then right click 'VB6.EXE' > Properties > Compatibility Tab > Check 'Run this program as an administrator' > OK

    This will make VB6 open with Admin rights.

    2. Aero Theme Problem
    If you are using Aero Theme then VB6 IDE will behave oddly when you resize/move controls on form, To fix this problem Check 'Disable Desktop Composition' in the compatibility Tab, like we did above. Alternatively, you can also move controls using keyboard, Shift + Arrow Keys to Resize controls, Ctrl + Arrow Keys to Move controls.

    Enjoy!

    Update:
    1. Windows Vista, 7, 8, 10 does not support WinHelp Help files, so some of the control's context sensitive help will not work. You candownload an add-on from Microsoft to display Helpfiles.

    2. On Windows 8 / 8.1 some users are reporting error at the end of setup, to fix this problem uncheck 'Data Access' at the start of setup. 

    No comments:

    Post a Comment