Click here to Skip to main content
15,911,306 members

Comments by VAlain (Top 7 by date)

VAlain 7-Dec-14 11:04am View    
Your solution is very far from been complete I also need the interface definition and it is different because that definition is in native code so I need to use some attributes like ComImport, Guid, InterfaceType, PreserveSig, etc. but with all the code snippets I found yet I could not make the persistence to work, my control work well but it looks like my interface isn't queried by Word or Excel when I put the control on a form as it should be.
VAlain 7-Dec-14 10:50am View    
I have already seen those articles, I know how to expose a .NET Component to COM and I already have a working .NET Component exposed to COM like I say in my post but I have an issue with the persistence and that's not covered by those articles.
VAlain 6-Dec-14 16:51pm View    
This is for the IIS Manager but I need it for and ActiveX Control in an Office Document.
I know there is a default implementation of the IPersistPropertyBag interface in the CCW and it work at least with Excel since I don't need to add this interface for the persistence to work in Excel but since it's now working with Word and Access I wanted to make my own implementation and I have seen in my reading that if I implement it this will overrides the default implementation of the CCW.
VAlain 6-Dec-14 16:43pm View    
In Word and Access when I first create the control on the form if I change the properties value it will be saved with the form but after that if I change the properties value they will not save with the form they will revert to the first saved values.
VAlain 6-Dec-14 16:21pm View    
This is about VB6 and C++ not about VB.NET witch is managed code like C# so it's very different.