title: VB.NET - Load files based on combo box selected index
body: <p>Ok, so I'm doing a fingerprint recognition system whereby I have to load the fingerprint template and verify if the template and the input on the device is match.</p>
  
  <p>So what I have done is to retrieve all the template that saved in my desktop (.fpt) and added to combo box.</p>
  
  <p>Now I'm trying to get if the SelectedIndex, 
  (for instance: Melanie.fpt is selected from the combo box, then system should load the file, then I will verify if the input matches the template)</p>
  
  <p>Below is the code for my combo box (successfully loaded into my combo box)</p>
  
  <pre><code>For Each foundFile As String In My.Computer.FileSystem.GetFiles(
      My.Computer.FileSystem.SpecialDirectories.Desktop,
      Microsoft.VisualBasic.FileIO.SearchOption.SearchAllSubDirectories, "*.fpt")
          cmbTemplateFiles.Items.Add(foundFile)
      Next
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <ol>
  <li><p>how do I let the system know if this selected index is referring to the particular file?</p></li>
  <li><p>after selecting, click on the button, systems will retrieve the file base on index selected, then i will do the comparison and verification</p></li>
  <li><p>but i have not still figured out, can anyone spark me with idea nor logic?</p></li>
  </ol>