Tuesday, February 2, 2010

get the application root path in Win Application in C#.net

string destpath = System.IO.Directory.GetParent(System.Windows.Forms.Application.ExecutablePath).Parent.Parent.FullName + "\\pic\\" + openFileDialog1.SafeFileName.ToString();

1 comment: