How to set vb.net selectedindex of combobox bound to arraylist
<p>I've searched and found many answers, but am unable to cause a specific combobox item to be shown as part of displaying a record in a form.  </p>

<p>The form contains a combobox with a DropDownList style.  I loaded it using an ArrayList exactly as described <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.valuemember(v=vs.110).aspx" rel="nofollow">on MSDN</a> .</p>

<p>After the combobox is loaded, I'm reading a database record, and I want the combobox's <code>DisplayMember</code> item to be displayed for a database value equal to that item's <code>ValueMember</code>.  I've tried everything I can think of, but the first <code>DisplayMember</code> item is always displayed.  I've tried:</p>

<pre><code>cboVehicleBodyType.SelectedIndex = cboVehicleBodyType.FindString(clsVehicle.fk_body_type)

cboVehicleBodyType.SelectedItem = clsVehicle.fk_body_type
</code></pre>

<p>...and several other variants, without luck.</p>

<p>The combobox contains approx. 180 body types and their primary keys (loaded from a BodyType table), and the database record for a vehicle contains the body type primary key (named foreign key in the Vehicle record).</p>

<p>How can I get the correct body type to be displayed in the combobox?</p>