Sky Software Homepage LogicNP Software Knowledge Base And FAQ

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

INFO : Using an icon in an embedded managed resource for the root of the namespace extension

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



Joined: 18 Jul 2005
Posts: 731

Posted: Thu Jan 18, 2007 5:57 am    Post subject: INFO : Using an icon in an embedded managed resource for the root of the namespace extension

For items within a namespace extension, EZNamespaceExtensions.Net supports icons in managed resources. However, this method does not work for specifying the icon of the root node of a namespace extension. This is because this icon is extracted by Windows Explorer which does not know the format of managed resources. For this reason, you must specify the icon using the format it understands - an icon file (.exe,.dll,.ico file) and the index of the icon within that file. This is done in the GetNSETargetInfo method of the NSEFolder class by specifying the IconFile and IconIndex properties. If the icon is an .ico file, then you can specify the full path of the .ico file in the IconFile property and 0 for the IconIndex property. If the icon is in a .dll or .exe file (such as in your namespace extension assembly file in the form of a Win32 resource), you should specify the full path of the namespace extension assembly file for the IconFile property and the resource id of the icon in the IconIndex property.

To embed a Win32 resource file in a managed assembly, see http://www.ssware.com/support/viewtopic.php?p=349

Note:
The same technique must also be used if you want to display overlay icons from resources. Since Windows Explorer cannot read managed resources, you must use Win32 resources.
Back to top
Display posts from previous:   
Forum Index -> EZNamespaceExtensions.Net All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group