Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WebBrowser.Navigate and WebBrowser.Visible=false

Status
Not open for further replies.

anacris

Programmer
Oct 7, 2003
7
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top