Public Sub New()
iim = iMacrosControl.Create("myKey")
iim.Dock = DockStyle.Fill
AddHandler iim.BrowserStatusUpdated, AddressOf iim_BrowserStatusUpdated
End Sub ...
The calling protocol I typically use for windows forms is class.show() or class.showdialog(), but because it appears that the iMacros component requires initialization via constructor, I am activating the form as follows:
Dim frm As New iMacrosForm
I have tried this several different ways, but the problem I am having is that the iMacrosForm instance runs fine the first time it is called, but after the form is closed, if the form is activated again I get the following runtime error:
I have tried calling dispose() in the close event of the form and elsewhere and presume that I am invoking the iMacros form improperly. Is there some additional documentation on how to do this? Thanks.System.Runtime.InteropServices.InvalidComObjectException was unhandled
Message=COM object that has been separated from its underlying RCW cannot be used.