get associated icon of a file stored in my sql server database

G

gevald123

I'm storing system files in a sql server database, as "image" datatype
fields.

In my front end (vb .net 1.1) I'd like to display these files in a
listview with the "Windows Explorer" feel and look.

I'm strugling to retreive the apropriate icon for the file extension,
so far all the code I saw, it seems like that I have to pass a file
name that exists in Windows O/S system file, in my case I'm not
dealing with files strored in the O/S, rather I'm dealing with files
stored in my own sql database.

Any help would be greatly appriciated.

Thanks.
 
G

Guest

(e-mail address removed) wrote in @v33g2000cwv.googlegroups.com:
I'm strugling to retreive the apropriate icon for the file extension,
so far all the code I saw, it seems like that I have to pass a file
name that exists in Windows O/S system file, in my case I'm not
dealing with files strored in the O/S, rather I'm dealing with files
stored in my own sql database

What component are you using to display the file list? Have you taken a
look at a ListView? You can pass whatever icons you like into a ListView.
You should be able to retrieve the icon for an associated file type through
the Windows registry.
 

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