For the current user
System.Environment.GetFolderPath(Environment.SpecialFolder.Startup));
For all users
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonStartup));
For the current user
System.Environment.GetFolderPath(Environment.SpecialFolder.Startup));
For all users
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonStartup));
For the current user
System.Environment.GetFolderPath(Environment.SpecialFolder.StartMenu));
For all users
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu));
For the current user
System.Environment.GetFolderPath(Environment.SpecialFolder.Recent));
For the current user
System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));
For all users
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments));
For the current user
System.Environment.GetFolderPath(Environment.SpecialFolder.MyPictures));
For all users
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonPictures));
For the current user
System.Environment.GetFolderPath(Environment.SpecialFolder.MyMusic));
For all users
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonMusic));
For the current user
System.Environment.GetFolderPath(Environment.SpecialFolder.Programs ));
For all users
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonPrograms ));
For the current user:
System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles ));
For all users
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles ));
32 bit executable under windows 64 bit for the current user
System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86 ));
For the current user
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFilesX86 ));
Current user (Not roaming)
System.Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData));
For the roaming user:
System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData ));
For all users
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData ));
To programmatically press a button , checkbox, radiobutton or controls derived from ButtonBase or implementing the IbuttonControl interface use the PerformClick method.
button1.PerformClick();