Type to search

featured Programming Useful Tools Windows Tricks and Tutorials

Installing and running Microsoft Visual Basic 6.0 On Windows 7/Windows 8 [x32-x64 : 32bit-64bit] with all features!


Hello Friends,recently i had to do some college Project in Microsoft Visual basic 6.0 + Oracle SQL Connectivity, but the hell Microsoft Visual Studio wasn’t simply installing on my Lappy, so after a few hit and misses at the goal, i have found the Foolproof Method for installing Microsoft Visual Studio on your Windows 7 and Windows 8,Windows 8.1 installations that too on both the 32 bit and x64:64-bit releases of Windows 7 and Windows 8 There are a lot many reasons which are responsible for installation of Visual Studio/visual basic 6, prominent of which are

  • Compatibility Issues
  • Microsoft Java Machine issues
  • Installer/Setup run-time issues
  • and some problems which ares pecific like unable to use visual Basic components such as ADODC,OLEDB,ADODB,RDO Connection problems etc

Lets solve each of them one by one in Detail.. :) but before that , there are some prerequisites which we must implement so as our setup will be much smoother… Prerequisites

  • During visual studio 6 Installation, it may ask you to install Microsoft Virtual Machine For Java,etc..and it may restart your computer continuously..so as a fix, simply Download the Following Ms-Java.bat file,and simply right click on it,and “Run it as administrator”,it will ask you for a confirmation,please select yes,it will open a box,and close that’s it!
  • Now,The visual Basic 6 Setup wont prompt you to install virtual machine for Java,thus removing a hurdle!
  • Click here to Download Ms-Java.bat  file for bypassing Microsoft Virtual Machine For Java..
  • Now lets look at the Setup! The link to torrent file of vb6 setup if you do not have it is here..>

The First Problem which we encounter during setup is compatibility issues

  • This Problem can be solved by running the setup.exe of the visual basic 6 setup,by right click and selecting “Run as Administrator”  option..
  • it may show a dialog box like this — > fortunately,this Problem will Be Solved by simply clicking the Run Program and the Setup Started.. :) , as you are running the setup,its possible that setup might become too very slow on places such as “searching for installed components” , “finishing installation” etc..dont worry its,totally normal! just wait for the setup interface to come up :)
  • Now you may simply Enter Serial Number,and Follow Next,Next Method of Installation and install Microsoft Visual Basic/Miscroft Visual Studio on your computer..BUT!!  if you follow this Method your Installation of Visual Studio will work,but on 64-bit (x-64) OS,Windows 7 64 bit,Windows  64-bit when you try to use Visual Basic components such as Data Grid,Active X controls,ADODC Connections,ADODB Connections for VB-SQL Connectivity it will give error..
  • The errors vary to a wide range depending upon the components selected and will be something as — ” failure to initialize provider,error 420,error 482,as well as the printer errors ” blah blah blah
  • So, in order to Make Visual Basic- Oracle SQL Connectivity we must do the following steps..
  • Please Make sure while installation/setup your Visual Basic installation directory is” C:\Program Files\Microsoft Visual Studio 6\common\” or  “C:\Program Files\Microsoft Visual Studio 6\” and NOT“C:\Program Fiiles (x86)\Microsoft Visual Studio 6\common\” or “C:\Program Files (x86)\Microsoft Visual Studio 6\common\”

Steps for Visual Basic – Oracle SQL Connectivity on Visual Basic 6 For 64 bit OS..!

  • The (x86) suffix at the end of Program files is responsible for the failure of various visual basic components such as data grid,ADODB,ADODC,OLEDB,Active-X,RDO,Printer Connectivity,windows common controls etc..

you can check this figure–> if it isn’t you may change the installation directory by clicking “Change Folder” or “Change Directory” as shown in the figure –>

  • Thus,we can make it Function Properly By Installing it to Default Program Files Folder..And All the Data bound controls,standard controls,added components to VB such as ADODB,OLEDB,Data bound grid control etc properly,Windows Controls,MAPI Controls Properly..!

Also if you already installed Visual Basic To Program Files (x86) just dont uninstall Please.. simply Perform the Following steps

  • Copy the Complete Microsoft Visual Studio Directory From c:\Program Files (x86)\ to C:\Program Files\
  • Now Go,to the Folder C:\Program Files\VB98\ andtry to run VB6.exe , it will give error as “Failed to register extension and blah blah”
  • Now simply run the “VB6.exe” from the non-x86 folder in “Run as Administrator” mode,. and voila!! Visual Basic Will Start Working,and all the Default Connectivity,Data Components which can be added from tools->components menu such as ADODB etc will start working!! thus , the VB-SQL Connectivity too will start Working!! ;)

If you Encounter Sluggishness in IDE do the Following Steps :)

  1. Using Windows Explorer, browse the location where you installed VB6. By default, the path is:
    C:\Program Files (x86)\Microsoft Visual Studio\VB98
  2. Right click the VB6.exe program file, and select properties from the context menu.
  3. Click on compatibility tab
  4. Check the following check boxes: For Windows 7:
    • Run this program in compatibility mode for Windows XP (Service Pack 2)
    • Disable Visual Themes
    • Disable Desktop Composition
    • Disable display scaling on high DPI settings

    For Windows 8

    • Run this program in compatibility mode for Windows XP (Service Pack 2)
    • Reduced Color Mode (16-Bit Color)
    • Disable display scaling on high DPI settings
  5. After saving open up VB6, It should work normally

That’s all! a quite-lengthy tutorial indeed! :) But Totally Working! if any Doubts/Problems Just drop a Comment below :) thanks!



  1. Piyush Puranik October 22, 2013

    Instead of downloading msjava.bat, an easier solution to avoid installing MS Java altogether is simply creating an empty dll called “msjava.dll” and placing it in C:\Windows\ . I have personally tested this and can confirm it works. To create and empty dll, simply open a notepad windows and save it as “msjava.dll”.

    1. copyitright June 13, 2014

      @ Piyush Puranik: The .bat does exactly the same thing, but does it for both files with one double-click 😉

      1. Chaitanya June 18, 2014

        Yes, agreed 🙂

  2. Danny Lauwers June 17, 2014

    Our old VB6 program compiles and runs, but all bound controls are just empty ? The data is retrieved from the database, but is not loaded into the controls.

    Any Idea on how to fix that ?

    1. TheblackJoker September 18, 2014

      I was haved thath problem, and only need to install vb6 on the computer, again, and the problem fixed 🙂

  3. Chaitanya June 18, 2014

    Try installing it in the directory “c:\Program Files\” and not “c:\program files (x86)\” and run the vb6 IDE as administrator, that solved the problem for me 🙂

  4. Annisa Lestari June 29, 2014

    i have following your path already but still, i cant add my componen, ADODC,boundgrid, etc.. it says error and not registery. what should i do ? 🙁 hiks help

    1. Chaitanya July 1, 2014

      @Annisa , Please try running the app as Administrator, or else we can provide you support on teamviewer if required, Thank you!

  5. Gevevon July 22, 2014

    thank you for the given instructions.. 😀
    i really appreciate it.. 😀

    1. Chaitanya July 22, 2014

      You’re welcome Gevevon , glad they helped you 🙂

  6. ninad August 24, 2014

    i installed VB6 in win 7 64 bit. and transfered the folder from “c:\Program Files\” and not “c:\program files (x86)\”
    still i can not able to select Microsoft Windows Comman Control 6.0 and Microsoft Windows Comman Control-2 6.0
    the error is “Object Library Not Registered”

    please help me.

    [email protected]

    1. Chaitanya August 24, 2014

      Ninad copy the folder into “C:\Program Files\” and from there right click the vb6 exe file and select “Run as Adminstrator” . it will solve the problem 🙂

  7. kishan September 2, 2014

    my antivirus says that msjava.bat file is malicious . Any threat to install

    1. Chaitanya September 2, 2014

      No threat 🙂 ., its just a simple batch script to copy a blank file that’s it 🙂

  8. priyanka September 13, 2014

    pls help

    1. Chaitanya September 13, 2014

      Yes, sure whats the problem ? We are happy to help at TechApple!

  9. Gul Rochlani September 13, 2014

    Hello, I tried the above procedure on 64bit windows 8.1 machine it worked perfectly, I am able to use visual studio 6 on my machine. Thank you for the Article.
    But When I tried to install Visual studio service pack 5, it was not able to detect installation of visual studio 6.
    I checked the registry and visual studio 6 doesn’t appear in list of installed programs.

    Wish, If I can get help on installing VS6 service pack 5.

    Note : I am using win 8.1, 64 bit.
    Thanks in Advance

    1. Chaitanya September 13, 2014

      Hello Gul, we can help you around over this, can you try running the Service pack 5 installer in “Run as Administrator” mode and tell us the happenings..?

  10. Rochlani Gul September 14, 2014

    Thank you for responding,
    I ran the service pack as Administrator only, but it was not working.
    After searching for installed components, I got the message that VS 6 is not installed and hence it cannot be updated with service pack.
    I even checked from control panel, the list of installed program and VS 6 was not showing in it. Though its running on my machine (64 bit win 8.1)
    Hope this will suffice for you to explore further. Thanking you Once again.

    1. Chaitanya September 14, 2014

      Welcome Rochlani, Okay, Can you Re-install VS 6 on the same machine , During installation , Please uncheck the “Data Access” option, it will do the registry entries. You can use Revo uninstaller to uninstall existing VS 6 installation. And if after re-installing the Service pack fails to detect components we can add the entries in Registry Manually, but that will be viablle only if re-installation doesn’t add the necessary entries to the registry.

  11. sten2005 November 18, 2014

    There is an installer to simplify the installation of the VB6 programming IDE on Windows 7, 8 and 10 which has now had over 25,000 downloads.


  12. Muhammad Saleem Malik November 25, 2014

    Sir when i Execute program then this error display g++ is not running what is this problem and give the solution of this. thanks

  13. lamees March 1, 2015

    please,is the interface of vb6 same as vb 2010??

  14. Jaime Duran August 9, 2015

    Excellent! everything was useful. My case: Win7-64

  15. S K Agrawal September 19, 2015

    What if I have already installed in Windows 8.1 and afterwards upgraded to Windows 10. How to correct the problem? Help.

    1. Chaitanya September 19, 2015

      O that’s something we didn’t get hands upon, it will be great if you can give us a teamviewer session so that we can try sorting out that issue or give us a couple of days to experiment and we’ll be updating the solution 🙂

  16. Larry Henderson October 3, 2015

    I can’t complete the macro because I don’t have VBA ! Is there an alternate way to create the macro OR is there a way to get VBA? I have a new HP Envy 15t that was loaded with win 8.1 Should I have VBA? Thanks.

  17. Larry Henderson October 3, 2015

    Another issue for installing the torrent file for VB6. I get the following error when I go to your torrent file link:
    Google URL Shortener

    http://goo.gl/rK2HDd – this goo.gl shortlink has been disabled. It was found to be violating our Terms of Service. Click here and here for more information about our terms and policies respectively.

    •Request a review.
    •Return to the previous page.
    •Try searching to find what you’re looking for.

    © 2015 Google Help Report Spam Privacy Policy Acceptable Usage Policy Terms of Service Google Home

    1. Chaitanya October 3, 2015

      Hi Larry, what’s VBA sorry I am weak with acronyms 🙁 regarding the torrent link umm go to any torrent search engine you’ll get many links to download vb6 🙂

  18. Larry Henderson October 4, 2015

    Hi Chaitanya. I was using VBA for Visual Basic. Where are the torrent sites I would search? PS- I am assuming VB6 is the latest version? Thanks for any help you can provide.

    1. Chaitanya October 4, 2015

      Hi Larry, no vb6 is perhaps the oldest version of Visual Basic. The latest one is visual Studio 2015. It will be easily installed on your system.
      You can search on torrent sites like torrentz. In remove the space before the in word 🙂

  19. Larry October 7, 2015

    Thanks Chaitanya. I am still working on it.

  20. Devshree October 7, 2015

    i have installed vb6.0 on windows 8 i am doing project on VB but there is problem to create Data Environment control when we create Data Report… what should I do? plz help it’s urgent…

    1. Chaitanya October 7, 2015

      Hello Devshree, have you installed vb6 in program Files in program Files 86 or normal program Files directory?

  21. vimal October 30, 2015

    i am able to open vb form and place ordinary text box or label controls but immediately i am getting a message stated ” vb6 has stopped working”.If i click ok it is going to check online compatible search message and after searching I am getting no solutions found.

  22. YogeshMankar February 18, 2016

    Hi.. will this fix the MAPI.dll errors. Trying to send emails from the vb6 application which worked in win 7 32 bit but errors on win 8 64bit

  23. Can I get an installer? Barely need it. Tnx. 🙂

  24. Harish Pawar April 16, 2016

    Yahooo !!!!
    I have installed finally VB 6.0 on Win 7 successfully… thanks to the website.

    I would strongly recommand this solution for all VB developers…

    1. Andri Savana October 10, 2016

      hello, Haris Pawar.
      i am sorry to bother you.
      Would you please send me the ms-java.bat’s file?
      because the link on above not active, so I can’t download that.
      my email: [email protected].

      I am so sorry to bother you (because you are the last one who can success to installed the program). And thank you in advance.

  25. Anne October 3, 2016

    Hi! When I try to open the link for ms-java.bat, it says page is not available, and when I try to cont. The installation for vb6.0 it say, unsuccessful installation and when I click okay, another message prompt it says c:\windows\vssetup.ttf

  26. Jagadeesh February 28, 2017


    I have installed VS 6.0 in my machine Windows 10 for VB 6. I have unchecked the data access tools while installation. Now, I want to use ADO to work with SQL server database.

    How can I do that ?



Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: