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
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
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)
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