how to remove the error type has no constructors defined
<p>I am trying to parse a webpage. But it is giving an error. Please help me. Thanks.</p>

<p>Here's the code:</p>

<pre><code>   static void myMain()
    {
        using (var client = new WebClient())
        {
            string data = client.DownloadString("http://www.google.com");
            HtmlDocument doc = new HtmlDocument();
            doc.LoadHtml(data);

            var nodes = doc.DocumentNode.SelectNodes("//a[@href]");
            foreach (HtmlNode link in nodes)
            {
                HtmlAttribute att = link.Attributes["href"];
                Console.WriteLine(att.Value);
            }
        }
    }
</code></pre>

<p>It is giving error that <code>The type 'System.Windows.Form.HtmlDocument' has no constructors defined.</code> I have included HAP.</p>

<p>Thanks</p>
