Hi, it's me again. Sry, for didn't answering yesterday, was on my way home. Okay, so opening the file is not the problem. The problem is to get the path and name of the file to open. So let me guess that you doing something like this.
public string getFullPath(string sPath) {
string sFileName = lvFiles.SelectedItem[0].Text;
return System.IO.Path.Combine(sPath, sFileName);
}
private void executeFile(TreeNode nodeCurrent)
{
Process.Start(getFullPath(nodeCurrent.FullPath));
Process.Start(String.Format("\"{0}\"", getFullPath(nodeCurrent.FullPath)));
}
If you are doing this, you get an error from the compiler? Did you include the Namespace (using System.Windows.Forms)? Or rewrite it to
private void executeFile(System.Windows.Forms.TreeNode nodeCurrent) {
...
}
Does this solve your problem? Regards Sebastian