Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.8k views
in .NET FTP by (460 points)
I need to display small icons associated with file types. Is there any way I can do this? I was hoping the ShowIcons property was what I needed but it doesn't seem to do anything. I can set it to true or false and nothing changes. The only icons I can ever see are the folder and default icons included with the product.

Thanks

7 Answers

0 votes
by (51.6k points)
Hi John

The product doesn't currently support this but it's a good idea. How about if we expose some sort of mapping between file extensions and indexes. The indexes would be refer to the images in SmallImageList. So the first thing you would do would be to add, for example, an image of a text-file to SmallImageList. You would then call a method that would be something like SetFileIcon("txt", 2), which would tell the control to use the 3rd item in the SmallImageList when it needs icons for any file with the extension "txt".

That's just off the top of my head and the API we end up implementing might be radically different, but what I'd like to know is would that cover your requirements?

- Hans (EnterpriseDT)
0 votes
by (460 points)
Hans,

That would work, but I think there is an easier way to do it. I've written a little windows application that shows how to get icons on the fly. You could incorporate the code in the API and then your job would be to create a way to make the functionality available to the user.

I've zipped the project up and sent it to you (through the support email)

John
0 votes
by (460 points)
Hans,

I'm still not able to send email to support@enterprisedt.com. It is bounced every time.

Is there another email address (to you specifically) that I can send the code to?

John
0 votes
by (162k points)
Weird. We've tried various accounts to send email to our support address (yahoo, gmail etc) and they don't bounce. Please send to our gmail support address, edt.support
0 votes
by (460 points)
Where can I find that address?

John
0 votes
by (460 points)
Where can I find that address?

John


I guess I should have read your not better. The address is (edt.support@gmail.com)?
0 votes
by (51.6k points)
John, I've made a patch available for you. Did you receive the message that I sent you about it? Does it work OK?

A note to other readers. In the next versions of edtFTPnet/Express and edtFTPnet/PRO, FTPLocalFileList and FTPRemoteFileList will use the Windows shell icons, like Windows Explorer.

- Hans (EnterpriseDT)

Categories

...