@H_404_0@一、js访问activex
@H_404_0@VB:
--------------------------------
Public Property Let TxtVisible(ByVal New_TxtVisible As Boolean)
Text1.Visible = New_TxtVisible
PropertyChanged 'BlnSystemUser'
End Property
@H_404_0@Public Sub SetValue1()
Text1.Text = "test zhanpeng"
End Sub
Public Sub SetValue2(str)
Text1.Text = str
End Sub
----------------------------------
@H_404_0@JS:
---------------------------------
document.getElementById("obj").TxtVisible = false;
document.getElementById("obj").SetValue1();
document.getElementById("obj").SetValue2(44);
---------------------------------
@H_404_0@二、activex访问js.txt
@H_404_0@VB:
------------------------
Private Sub Command2_Click()
UserControl.Parent.Script.test (3)
End Sub
--------------------------
@H_404_0@js:------------------------function test(str){alert(str);}------------------------