Jan 15, 2010 at 4:13 PM
Edited Jan 15, 2010 at 5:18 PM
I am trying to make some extended controls to use
in a Microsoft Access Application. I intend to develop these controls in .NET to COM.
Expose my Properties and Methods at Design and Runtime ('AutoDual') in order to Intellisense in the Host Application.
This UserControl can use some .NET Controls, eg. A UserControl with a TextBox, I want to expose some TextBox Properties
I started a thread in
http://social.msdn.microsoft.com/Forums/en/vbinterop/thread/7cf3d83e-b4ae-4b78-8f66-8707907b8b22, and I was able to connect as 'AutoDual', but this caused some problems like:
In Access i get the
"A problem occurred while Microsoft Office Access was communicating with the OLE server or ActiveX Control. Close the OLE Server and restart it outside of Microsoft Office Access"
This problem only happen when is in AutoDual
1 - Open the CSActiveX Project and change to [ClassInterface(ClassInterfaceType.AutoDual)]
2 - Add to Microsoft Access and navigate thrue control properties at Design