using Microsoft.Office.InfoPath;
using System;
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
using mshtml;
using System.IO;
using System.Windows;
use the above name spaces and add the following dlls to your solution
System.Windows.Forms.dll
microsoft.mshtml.dll ---- Download from the microsoft site
then it will work