首先winform中设置
<System.Runtime.InteropServices.ComVisibleAttribute(True)> _
Public Class Form1
formload中设置
webbrowser.ObjectForScripting = Me
调用的函数要是 public
Public Sub add(ByVal numAs String)
网页中
window.external.add(num)
首先winform中设置
<System.Runtime.InteropServices.ComVisibleAttribute(True)> _
Public Class Form1
formload中设置
webbrowser.ObjectForScripting = Me
调用的函数要是 public
Public Sub add(ByVal numAs String)
网页中
window.external.add(num)