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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

É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?


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.