Visual Studio 2008 SHDocVw Windows 7

I have a windows form app that I wrote in Visual Studio 2008 in XP that has a reference to  SHDocVw.
I am changing my programming platform over to Windows 7 x64. I cannot add a reference to SHDocVw.dll it gives me
<The system cannot find the reference specified>

Any Ideas ?
LVL 20
Who is Participating?
Éric MoreauSenior .Net ConsultantCommented:
why do you need a reference to ShDocVw when you have an intrinsic web browser control? what are you trying to do?

Jacques Bourgeois (James Burger)PresidentCommented:
Some 32-bits dll cannot be accessed by 64-bits applications.

Try setting the compiler for a 32-bits by specifying x86 as the Target PCU in the Compile tab of the project's properties, under the Advanced Compile Options button.
hesAuthor Commented:
My program reads a database and if there is data to be processed navigates to a database and submits the data. With the reference to SHDocVw.dll  I was using the .value property to populate the fields. Example
Web1.Document.All("inputfield").Value = "Test just a test folks"
The .value is not a property in the webbrowser control.

Tried that, it is in the IDE that will not see set a reference to the dll
hesAuthor Commented:
Ok fixed the populate field problem.
Web1.Document.GetElementById("inputfield").InnerText = "Test just a test folks"

look for a question about how to click a button that is a class
Jacques Bourgeois (James Burger)PresidentCommented:
It is not listed in the list of COM objects in Windows 7. You have to reference it through Browse.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.