MSScriptControl and VB.Net Control Events
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I am attempting to add a form or control as an object to my instance of the MSScriptControl, where the control or form will extend its events to the loaded script... oScripting.AddObject("Window", Me, True) oScripting.State = MSScriptControl.ScriptControlStates.Connected That is supposed to add the object and attach its members and events... but it doesnt fire the event within the script.. Sub Window_Click() Msgbox "clicked" End Sub I have also tried; Sub Window_Click(sender, e) Msgbox "clicked" End Sub Please advise! I would very much like to know what I am doing wrong!