Where is the System.Windows.Forms.Integration namespace?

Davy8 picture Davy8 · Mar 13, 2009 · Viewed 31k times · Source

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?

Answer

JaredPar picture JaredPar · Mar 13, 2009

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

On my machine it's located at

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