Hi all i have doen a code to retrieve direcotry path in 2 different forms. If in one form if i select a path to open a file and finished and when coming back to the other form i am getting an error as Direcotry Exception. But i used to different strings to get that path
like in my 2nd form i called this
string strFilePath2;
strFilePath2 = Directory.GetCurrentDirectory();
strFilePath2 = Directory.GetParent(strFilePath2).ToString();
strFilePath2 = Directory.GetParent(strFilePath2).ToString();
strFilePath2 = strFilePath2 + "\\ACH";
Where as in my first form i am having
strFilePath = Directory.GetCurrentDirectory();
strFilePath = Directory.GetParent(strFilePath).ToString();
strFilePath = Directory.GetParent(strFilePath).ToString();
strFilePath = strFilePath + "\\ACH\\" + Node;
But while i debug i am getting the selected path from the second form but not the path i required can any one tell why...