Convert String to Variable Name <p>I need get combobox by string. Not worked.</p> <pre><code> for (int i = 0; i &lt; Slots.Count; i++) { var field = (ComboBox)this.GetType().GetField("cbSlots" + i).GetValue(this); field.DataSource = Slots[i.ToString()]; } </code></pre>