Hello,
I have classes I wrote in VBA which I use to manage form / control events for MS Access. I thought I'd try porting them to VB Net...
I built a prototype class with a function that took an Access.Form as a parameter. Of course, in VB Net, and Access form object is not a member of Access.Form, it's a member of Interop.Microsoft.Office.Interop.Access.Form (or something like that).
Anyway, that causes problems when I try to register it using regasm.exe because, of course, COM doesn't understand Interop.Microsoft.Office.etc...
So how can I pass a form object from Access VBA to a VB net function when, in VB net, I have to declare the Form object as a member of a class which COM cannot understand?
I have classes I wrote in VBA which I use to manage form / control events for MS Access. I thought I'd try porting them to VB Net...
I built a prototype class with a function that took an Access.Form as a parameter. Of course, in VB Net, and Access form object is not a member of Access.Form, it's a member of Interop.Microsoft.Office.Interop.Access.Form (or something like that).
Anyway, that causes problems when I try to register it using regasm.exe because, of course, COM doesn't understand Interop.Microsoft.Office.etc...
So how can I pass a form object from Access VBA to a VB net function when, in VB net, I have to declare the Form object as a member of a class which COM cannot understand?