Multiple file icon

G

Guest

Hi,

I am able to register an icon for my application file (custom data file). It
works fine when viewed in file explorer as it displays the correct icon for
the custom file type.

A question is how do I enforce files residing in external storage like SD
card to have a different icon showing that it resides on an external storage,
such as for word file which has a small SD card image on its icon? Currently
it displays the same icon no matter where it resides.

Any solution is much appreciated.

Thank you.
 
P

Paul G. Tobey [eMVP]

That's not the way the shell works. The icon is tied to the file extension.
The shell doesn't care if the file is on external storage, on a network
drive not even physically connected to the device, etc. The only way to
have a different icon would be to have a different file extension.

Paul T.
 
G

Guest

Thank you very much.


Paul G. Tobey said:
That's not the way the shell works. The icon is tied to the file extension.
The shell doesn't care if the file is on external storage, on a network
drive not even physically connected to the device, etc. The only way to
have a different icon would be to have a different file extension.

Paul T.
 
S

Simon Hart

It does have a different icon when viewed via the standard open/save dialog
box.

Simon.
 
P

Paul G. Tobey [eMVP]

If there's just a little overlay showing that the file is on an external
filesystem, that's different than being able to show a completely different
icon; it's just a little overlay on the actual icon registered for the file
type. You can certainly write code to make *your program* display the file
differently, depending on whether it's on the internal filesystem or an
external one, but there's no global way to have completely different icons,
other than setting the extension differently.

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top