JaneksCraft
JaneksCraft

Reputation: 83

WebBrowser .NET Windows Forms - Cut/Hide parts from the page

Hello,

if i come from an URL, is it possible to cut or hide parts from the orginal Webpage in the webBrowser.Net component?

Thanks!

Upvotes: 1

Views: 428

Answers (1)

Weimin Ye
Weimin Ye

Reputation: 665

I implemented your function at WPF as below: Write the below code at DocumentComplete Event:

webbrowser1.Document.getElementById("id1").SetAttribute("style","display:none;");

I think you can follow my way at Windows form

Upvotes: 1

Related Questions