Dim node As New HTMLDOMTextNode
 Set node = wsbMain.Document.createElement("input")
 node.Value = "Mybutton"
 node.Type = "Button"
 For i = 0 To node.Attributes.length - 1
     If node.Attributes(i).Name = "onclick" Then
         node.Attributes(i).Value = "this.style.display='none'"
     End If
 Next i
在这段话中,可以为我的 WebBrower 创建一个 Button 控件。然后分别为属性 value 和  type赋值。
最后发现了个问题,怎样添加事件?使用我这里的方法在IE中可以,在WEBBROWSER中就有问题了。
急``````````高手们,帮帮忙。一天了,眼睛都疼死了。