File Information

  • Thread starter Thread starter Matthias Steinbart
  • Start date Start date
M

Matthias Steinbart

Hi,

searched the newsgroup but couldn't find anything. Almost unbelievable. I
think these must be common questions. I'd like to display the files in a
given folder within a ListView. Various don't-knows:

1. How to I retrieve the associated Icon for a given file?
2. How do I retrieve the file Type (on my german OS, the explorer displays
"Microsoft Word-Dokument" when selecting 'bla.doc'.)
3. How do I launch the file in it's associated application? I know I can
start any application using Process.Start(). But is that the way of doing it
properly (by attaching the documents file name as a commandline parameter?)

Just need a starting point.

Thanks a ton!

Matthias
 
Hi,

1. How to I retrieve the associated Icon for a given file?

http://groups.google.com/groups?hl=...Search&meta=group%3Dmicrosoft.public.dotnet.*

The third post from searching "icon file retrieve" :)
2. How do I retrieve the file Type (on my german OS, the explorer displays
"Microsoft Word-Dokument" when selecting 'bla.doc'.)

SHGetFileInfo ???

3. How do I launch the file in it's associated application? I know I can
start any application using Process.Start(). But is that the way of doing it
properly (by attaching the documents file name as a commandline
parameter?)

Process.Start seems good enough.

Cheers,
 
Back
Top