用一个openFileDialog 选择一个文件, openfiledialog1.ShowDialog()=DialogResult.OK,触发事件,txtCFile.Text=openFileDialog1.FileName;这里是被选中文件的完整绝对路径,如:C:/ppp/ccc.mp3
System.IO.GetFileName(@"C:/ppp/ccc.mp3");即可得到ccc.mp3










System.IO.GetFileName(string path);即可得到文件名,还可以获取扩展名System.IO.Path.GetExtension(string path),目录名System.IO.Path.GetFullPath(string path)。