这句用VB如何写
这句用VB怎么写?C# codeHtmlElement btnElement htmlDoc.All[btnClose] if (btnElement ! null) {bt
这句用VB怎么写?
C# codeHtmlElement btnElement = htmlDoc.All["btnClose"]; if (btnElement != null) { btnElement.click += new HtmlElementEventHandler(HtmlBtnClose_Click); }
求助,给出用vb.net写的格式。
[解决办法]Dim btnElement As HtmlElement = htmlDoc.All("btnClose")
If btnElement IsNot Nothing Then
btnElement.click += New HtmlElementEventHandler(HtmlBtnClose_Click)
End If