Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27376

VS 2010 Getting Icon for a particular extension..?

$
0
0
Dears,

I am making a attachment module where a user selects a file and add to a list which later gets saved into db.
So, while the user selects the files the listview shows this all files along with the fily type icons; so till here all is well i am using this code for this

Code:

  Dim ico As Icon = Drawing.Icon.ExtractAssociatedIcon(fileName)
            imageListName.Images.Add(ext, ico)

Attachment 94291

Now, the problem is once saved, when I want to edit this how can i get the icons for the file type? as that time i will be having only file names in the listview not the actual files. So, based on the extension i need to show the file type .. how can i achieve this .. please guide if there is any way out ..

Best Regards,

Sam
Attached Images
 

Viewing all articles
Browse latest Browse all 27376

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>