title: How do I get the checked value from my checkedListbox?
body: <p>I'm writing a program for a colleague but don't know how to use the properties of all the items on Visual Studio C++ 2010.</p>
  
  <p>I want to take the string that is selected or checked on the Listbox and Checked Listbox as well. On the first line of my code, when I take the List box char, it works perfectly, but when I try to do the same with my checked Listbox it gives me an exception.</p>
  
  <p>Whats the property to only check one item on the Checked List Box?</p>
  
  <pre><code>char *nVuelo=((char*)Marshal::StringToHGlobalAnsi((String ^)(LB_VisorVuelos-&gt;Items[LB_VisorVuelos-&gt;SelectedIndex])).ToPointer());
  int pAsiento=((int)Marshal::StringToHGlobalAnsi((String ^)(CLB_Asientos-&gt;Items[CLB_Asientos-&gt;SelectedIndex])).ToPointer());
  </code></pre>