در این ویدئو نحوه اضافه کردن اسکریپت به سند HTML در Runtime و اجرای متودهای اسکریپت در Windows Forms توضیح داده شده....
<Extension>
Function AddScript(ByRef Document As HtmlDocument, Path As String) As mshtml.HTMLScriptElement
Dim Script As mshtml.HTMLScriptElement, Element As HtmlElement
Element = Document.CreateElement("script")
Element.SetAttribute("type", "text/javascript")
Element.SetAttribute("src", Path)
Document.Body.AppendChild(Element)
Script = Element.DomElement
Return Script
End Function