I want to create a screenshot of web page in WebBrowser Control, so I used Watin to achieve this. But capturewebpagetofile() capture all is black image. The web page is already loaded completed in WebBrowser. capturewebpagetofile() is worked fine except in WebBrowser. Why capturewebpagetofile() can't work in WebBrowser Control?
My code blow:
IE ie = new IE(webBrowser1.ActiveXInstance);
ie.GoTo(url);
ie.CaptureWebPageToFile(@"c:\test.png");