Click here to Skip to main content
16,004,653 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I am back after long time here..I count on code team, I need to upload file of various format like .jpg,.png,.pdf,.doc etc. After inserting file, I need to show details of that file in data grid having icon of file with its name, and view link button to open this file...Please help me out.

I believe you guys....Will sure help Me.

What I have tried:

I am totally confused...how to get this....even it is very complicated for me to do so in Windows application. Please help me. I am not programmer....I am just learner.
Posted
Updated 31-Aug-16 21:01pm

1 solution

See this article: Get Registered File Types and Their Associated Icons in C#[^]

You can also use:
XML
Icon.ExtractAssociatedIcon(file.FullName);

The full example can be found here: How to: Extract the Icon Associated with a File in Windows Forms[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900