using Windows 7 and calling:
OpenFileDialog LogoLoad = new OpenFileDialog();
LogoLoad.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
LogoLoad.Filter = "Image Files|*.jpg;*.gif;*.bmp;*.png;*.jpeg|All Files|*.*";
LogoLoad.Title = "Load Dealer Logo";
LogoLoad.FilterIndex = 1;
LogoLoad.RestoreDirectory = true;
if (LogoLoad.ShowDialog() == DialogResult.OK)
{
filenname = Path.GetFileName(LogoLoad.FileName);
path = Path.GetDirectoryName(LogoLoad.FileName);
extension = Path.GetExtension(LogoLoad.FileName);
Problem is picturebox1.ImageLocation comes up as Null even though picture is displayed and path+filename does not give correct path IE..
It says c:\Users\username\Pictures\logo.gif
when it is actually c:\Users\username\My Pictures\Pictures\logo.gif
any clues here... cant wrap my mind why it would be giving wrong path yet displaying proper picture