title: Vb.net - Select listbox item based on string
body: <p>I'm trying to write a small app which can be used in order to log off Citrix Sessions. 
  Citrix Sessions can be logged off via cmd or a batch file using this method:</p>
  
  <pre><code>@echo off
  echo "Enter username"
  set /p UserName=
  
  echo 001
  query user %username% /server:server1
  echo 002
  query user %username% /server:server2
  echo 003
  query user %username% /server:server3
  </code></pre>
  
  <p>etc etc</p>
  
  <p>This would give me the following results:</p>
  
  <pre><code>001
  No User exists for Charlie
  002
  No User exists for Charlie
  003
   USERNAME            SESSIONNAME         ID   STATE   IDLE TIME  LOGON TIME
   Charlie             ica-tcp#32           6   Active          .  29.01.2010 13:23
  </code></pre>
  
  <p>So basically what I want to do is to select each listbox item that matches one of the hits from the cmd command. Probably the servername that gives a different result than "No User exists for"</p>
  
  <p>How can something like this be achieved?</p>