Development37 OpenFileDialog에서 파일 이름만 얻어오기. string fileName = openfiledialog.FileName; string result_fileName = fileName.Substring(fileName.LastIndexOf("\\") + 1); 결과 : fileName : OpenFileDialog에서 가져온 파일의 전체 경로와 파일 이름을 가져 옴. result_fileName : OpenFileDialog에서 가져온 파일의 이름만 저장. 2010. 3. 8. 이전 1 ··· 7 8 9 10 다음