Friday, December 5, 2008

VB6 Developers - Can't use WebBrowser Control since IE7 installed

This should not happen for run time users.

When you open a project that is using the class SHDocVwCtl.WebBrowser (SHDOCVW.dll), you might get this error message:

File Not Found ieframe.dll\1

If you didn't save your project file after you got the error message:

  1. Exit VB6
  2. Run regedit
  3. Edit | Find
    image
    ieframe.dll\1
  4. You should find:
  5. Change the default value by removing "\1"
    image
  6. Open the project in VB6 and everything should be fine

If you saved the project after the error message, the vbp file will be damaged

FIRST FIX THE REGISTRY AS ABOVE

Option 1:    go to your backup vbp

Option 2:   

  1. edit the vbp file with notepad
  2. insert the following line in the top section
    Object={EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0; shdocvw.dll

Good Luck.

1 comment:

Anonymous said...

Thanks I was able to use the webbrowser control again in vb6/xp