PDA

View Full Version : چطور یک شی از کلاس HtmlDocument بسازم؟



roohial
سه شنبه 30 مهر 1392, 18:29 عصر
وقتی از کلاس HtmlDocument شی میسازم ارور زیر رو میده
System.Windows.Forms.HtmlDocument' has no constructors defined'
میگه این کلاس سازنده نداره
ولی تو چندتا سایت خارجی ازش شی ساختن

rezaei_y
سه شنبه 30 مهر 1392, 23:49 عصر
Change
HtmlDocument doc = new HtmlDocument();
to
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();




stackoverflow (http://stackoverflow.com/questions/12025738/how-to-remove-the-error-type-has-no-constructors-defined)