Tag Archives: mydocuments

Add ‘all’ Special-Folder names to a Listbox/Combobox using VB.NET or higher

This will add the names of all the available special folders like MyDocuments, MyPictures, Startup, Programs, ProgramFiles, and so on

        '
        'Should add all of the available special folder names or directorys to a listbox or combobox.
        '
        Dim sFolder As Environment.SpecialFolder

        For sFolder = 0 To 43

            If Not Char.IsNumber(sFolder.ToString) Then

                Listbox1.Items.Add(sFolder.ToString)

            End If

        Next