C# .NET - WebBrowser control - Asked By Cristina Malavasi on 13-Oct-03 01:43 PM

Hi,
I am using a WebBrowser control, because I need to put some of my windows form variables into an html document and then print it... but I do not need the html page to be seen in the form, so I set the WebBrowserControl property Visible to false (WebBrowser.Visible=false) and then call the Navigate method (WebBrowser.Navigate(...)) but it gives me the following error: Trying to revoke a drop target that has not been registered...
If I set the WebBrowser.Visible=true the application runs just fine...
Does anyone knows how can I print the html document without having to see the webBrowser control in the form? 
Thanks a lot

why not just set the size - Asked By Peter Bromberg on 13-Oct-03 02:25 PM

to a very small amount, or consider laying another control that blends with the form
over the webbrowser control.