In my wpf application i am trying to use windows form control.... but i am getting an error i.e Error The type 'WindowsFormsHost' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. can any one help me to get it done... the following is my code
c#:code
public Window2()
{
InitializeComponent();
System.Windows.Forms.PictureBox PictureBox1 = new System.Windows.Forms.PictureBox();
windowsFormsHost1.Child = PictureBox1;
PictureBox1.Paint += new System.Windows.Forms.PaintEventHandler(PictureBox1_Paint);
}
xaml:code
<WindowsFormsHost Height="175" HorizontalAlignment="Left" Margin="10,10,0,0" Name="windowsFormsHost1" VerticalAlignment="Top" Width="255" />


xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"andxmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"- Nikhil AgrawalWindowsFormsIntegrationref? - Rang