Get the startup folder

For the current user

System.Environment.GetFolderPath(Environment.SpecialFolder.Startup));

For all users

System.Environment.GetFolderPath(Environment.SpecialFolder.CommonStartup));
Lastest update in May 2011, inital post in May 2011

Get the start menu folder

For the current user

System.Environment.GetFolderPath(Environment.SpecialFolder.StartMenu));

For all users

System.Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu));
Lastest update in May 2011, inital post in May 2011

Get the MyDocuments folder

For the current user

System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));

For all users

System.Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments));
Lastest update in May 2011, inital post in May 2011

Get the MyPictures folder

For the current user

System.Environment.GetFolderPath(Environment.SpecialFolder.MyPictures));

For all users

System.Environment.GetFolderPath(Environment.SpecialFolder.CommonPictures));
Lastest update in May 2011, inital post in May 2011

Get the MyMusic folder

For the current user

System.Environment.GetFolderPath(Environment.SpecialFolder.MyMusic));

For all users

System.Environment.GetFolderPath(Environment.SpecialFolder.CommonMusic));
Lastest update in May 2011, inital post in May 2011

Get Programs menu folder (Start Menu)

For the current user

System.Environment.GetFolderPath(Environment.SpecialFolder.Programs ));

For all users

System.Environment.GetFolderPath(Environment.SpecialFolder.CommonPrograms ));
Lastest update in May 2011, inital post in May 2011

Get the Program Files folder

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 ));
Lastest update in May 2011, inital post in May 2011

Get the local application data folder

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 ));
Lastest update in May 2011, inital post in May 2011

Programmatically press a buton, checkbox etc

To programmatically press a button , checkbox, radiobutton or controls derived from ButtonBase or implementing the IbuttonControl interface use the PerformClick method.

button1.PerformClick();
Lastest update in May 2011, inital post in May 2011