Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO: Register a shell extension for multiple targets/extensions

 
Subscribe to the RSS feed for this forum  Forum Index -> EZShellExtensions.Net
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Wed Sep 26, 2007 11:29 am    Post subject: HOWTO: Register a shell extension for multiple targets/extensions

Some shell extensions, such as the ContextMenuExtension, PropertySheetExtension, IconExtension, etc require you to specify a target (typically a file extension) using the TargetExtension attribute. You can specify multiple targets by applying multiple TargetExtension attributes as follows :

[C#]
[Guid("B084EEB5-C144-4006-A7C3-8DB4ED46C54B"), ComVisible(true)]
[TargetExtension(".dll",true)]
[TargetExtension(".exe",true)]
[TargetExtension(".ocx",true)]
public class RegisterExtensionCtxExt : ContextMenuExtension
{
...
...
}


[VB.Net]
<Guid("0E202AE7-1782-4d70-B9E1-735335B1289F"), ComVisible(True), TargetExtension(".dll", True), TargetExtension(".exe", True), TargetExtension(".ocx", True)> _
Public Class RegisterExtensionCtxExt
...
...
End Class
Back to top
Display posts from previous:   
Forum Index -> EZShellExtensions.Net All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group