//I am getting path has an ilegal form in the next line //I also tried this statement inside the foreach, but with no luck (Path.GetFullPath(Path.GetFileName(trwFileExplorer.SelectedNode.Name)))) //This was the other thing I tried path.Text = Path.GetDirectoryName(trwFileExplorer.SelectedNode.Name); //and I am getting the same error here inside the foreach foreach (string file in Directory.GetFiles(path.Text)) { media = player.newMedia(Path.GetFullPath(Path.GetFileName(file.ToString()))); playlist.appendItem(media); //path.Text = Path.GetFullPath(Path.GetFileName(file.ToString())); }
trwFileExplorer.SelectedNode.Name
Text
Value
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)