title: C# - Cannot do Key-Value in a ListBox in WinForms
body: <p>I'm writing a C# app using a ListBox in WinForms.  </p>
  
  <p>I get my data (id and full name) from an XML file. I want to show full names in the listbox and when I select one of them, I want to get the relevant id.</p>
  
  <p>I tried using <code>SelectedValue</code> property with no luck.</p>
  
  <p>I also tried <code>KeyValuePair</code> and it shows "[full name, id]" in the listbox, which is not what I wanted:</p>
  
  <pre><code>LB_UserList.Items.Add(new KeyValuePair&lt;string, string&gt;(full_name, node["user_id"].InnerText));
  </code></pre>
  
  <p>How can I simulate a HTML select in C# in short? I want to show full names in the listbox and to get relevant id in the backend.</p>