How do I open a Windows 7 Library like Documents
, Pictures
, Music
, Videos
and all other custom libraries from my app?
Look at this to see how the most common actions are performed on Windows 7 libraries.
Edit:
The sample uses the Windows API Code Pack for Micorosoft .Net Framework [ edit 2015-09-24: previous link is dead - use this SO entry to locate the necessary Nuget packages ] (thanks MarkJ for pointing out that the link should be there).
As for David Heffernan's question ...
You use the assign the ShellLibrary
object to the DefaultDirectoryShellContainer
property of an Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialog
(e.g. the Microsoft.WindowsAPICodePack.Dialogs.CommonOpenFileDialog
).