views:

1325

answers:

1

I can't seem to find it, trying to keyboard input in a wpf form spawned from a winforms form. Found this: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/442782b1-00a1-4e2e-9cc6-ae99b6699126/ But when I try to use it, VS2008 complains about not being able to find the System.Windows.Forms.Integration namespace. I couldn't find a reference in the add references.

The only thing I can think of it maybe because it was a VS2005 project ported to VS2008?

+6  A: 

You'll need to add a reference to WindowsFormsIntegration. If you do a Add Reference in Visual Studio, it will be the last DLL available in the .Net tab

On my machine it's located at

%ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\WindowsFormsIntegration.dll

JaredPar
Oooh, I was looking for System.Windows.Forms.Integration in the list, not WindowsFormsIntegration as one word. Seems odd that they chose to name it that way.
Davy8
@Davy8, I find it quite odd as well.
JaredPar
+1 just saved me a lot of hair-tearing!
Andreas Grech