I'm creating an ActiveX Dll project that has 'frmWebBrowser' which has a WebBrowser1 control in it. I also have a 'clsWidget'. For each instance of 'clsWidget', I would like to have a 'thisWebBrowser as WebBrowser' property with events. Here's what I have so far:
Private WithEvents thisWebBrowser As frmWebBrowser
Public Function Connect() As Long
Dim newIndex as Integer
newIndex = frmWebBrowser.WebBrowser.UBound
Set thisWebBrowser = frmWebBrowser.WebBrowser(nexIndex)
I get "Object or class does not support the set of events" when trying to set thisWebBrowser equal to the one I just created. Does anyone have any idea how I could make this work? Thanks.