FAQ & Knowledge Base

Welcome to our Knowledge Base. Search or browse through the topics below to find answers to your questions.

Categories: ShellBrowser Delphi Components | Show all categories

Get the icon from a file or folder

Question / Problem

I want to get the icons from a file or folder. Can I use a ShellBrowser component?

Answer / Solution

The best way to get icons is to use the TJamSystemImageList component, which is a descendant of Delphi 's ImageList component.

Use the method GetFolderIconNumber() to receive the image index of the default Windows Explorer folder icon.