Desktop.GetFileIcon (gb.desktop)
Static Function GetFileIcon ( Path As String, Size As Integer [ , Preview As Boolean ] ) As Picture
Return the icon associated with a specific file.
-
Path is the file path. It can points at a directory.
-
Size is the icon size.
-
Preview tells if image files are displayed as thumbnails. By default, Preview is FALSE, and the image file icon is returned.
This function is based on the
DesktopMime class.