Answers for "c# how to get current user picture folder"

C#
0

c# how to get current user picture folder

// Sample for the Environment.GetFolderPath method
using System;

class Sample
{
    public static void Main()
    {
      // Gets the current user Pictures folder
    Console.WriteLine("GetFolderPath: {0}",
                 Environment.GetFolderPath(Environment.SpecialFolder.MyPictures));
      
      using (OpenFileDialog ofd = new OpenFileDialog())
            {
        // When its open it will open the picture folder
                ofd.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
            }
    }
}
/*
This example produces the following results:

GetFolderPath: C:\WINNT\System32
*/
Posted by: Guest on December-06-2020

Code answers related to "c# how to get current user picture folder"

C# Answers by Framework

Browse Popular Code Answers by Language