Hi there....
This is an Extension method to change the display of the HTML Element in
Windows Forms Applications:
References:
- Microsoft.mshtml
- System.Windows.Forms
Method:
<Extension()>
Public Sub SetVisibility(Element As HtmlElement, value As Boolean)
With DirectCast(Element.DomElement, mshtml.IHTMLElement).style
.display = If(value, "", "none")
End With
End Sub
Top comments (0)