title: Hide/modify string in listView
body: <p>I am making a program in which users can modify remote files. I put the selected files (depending on some predefined criteria) in a listView, but I display only the file names, not full filepaths.</p>
  
  <p>The problem I get however, is that when a user would double-click on an item, it should open another window to modify that item.</p>
  
  <pre><code>private void listView1_DoubleClick(object sender, EventArgs e)
  {
      account = File.ReadAllLines("\\\\myremoteserver\\ftp\\"+listView1.SelectedItems[0].Text+".txt");   
      Form3 passForm = new Form3();
      passForm.ShowDialog();
  }
  
  private void Form2_Load(object sender, EventArgs e)
  {
      string[] files = Directory.GetFiles("\\\\myremotserver\\ftp\\","*.txt", System.IO.SearchOption.AllDirectories);
      foreach (string s in files)
      {
          listView1.Items.Add(Path.GetFileNameWithoutExtension(s));
      }
  }
  </code></pre>
  
  <p>The problem is, that the files are all in different subfolders, so if I leave the code as is, it will not display the correct content of the file. For example, the file is called test1.txt, it is placed in <code>myremoteserver\ftp\testfolder\test1.txt</code>, but with my program, it will try to find the file in <code>myremoteserver\ftp\test1.txt</code>.</p>
  
  <p>What I am asking is, if it is possible to modify the listView in such a way, that the full file path is always saved, but only the file names are displayed? I do not want the user to see the complete file path of the files, just the file names.</p>