|By: Paul S. Cilwa||Viewed: 7/10/2020
|Topics/Keywords: #Computers #CustomBrowser #KnownFolders #Organica #Programming #VB.NET||Page Views: 848|
|How to create a class to encapsulate the Known Folders of Windows Vista+.|
Windows has had "special" folders since Windows 95. You remember the Documents folder, right? As well as Desktop, and (with later versions of Windows) Downloads, My Music, and so forth.
With Windows Vista, this conglomerate of folders became known officially as "Known Folders", despite there being no "unknown folders" to speak of.
Most, but not all, of the Known Folders are accessible to VB.NET programs via a simple function call. But to package them all in a class solution allows for even simpler access in any application that needs it.
Here's the new class module, KnownFolders.vb: