Link to home
Start Free TrialLog in
Avatar of hes
hesFlag for United States of America

asked on

Visual Studio 2008 vb.net 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 ?
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of hes

ASKER

emoreau,
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.

James,
Tried that, it is in the IDE that will not see set a reference to the dll
Avatar of hes

ASKER

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
It is not listed in the list of COM objects in Windows 7. You have to reference it through Browse.