I have a class written in VB.Net exposed to COM via the ComClass & ComVisible attributes. The class is then made available to VBA via a TLB. In VB6 you could easily mark a member hidden in the object browser but still available with a check mark. In VB.Net the only way I found to make a member hidden the VBA object browser is to prefixing the name with an underscore.
Is there a way to hide a member without underscoring it?
You might take a look at the BrowsableAttribute in System.ComponentModel namespace. Normally this hides a property or method from intellisense but it may also work for COM.
I don't use COM myself so can't really test it.
http://msdn.microsoft.com/en-us/library/system.componentmodel.browsableattribute.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With