How to populate textbox with data , using selected combobox items
问题 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { combobox.items.add=("peter magdy"); if (combobox.selecteditems=("peter magdy") textbox.text==("age 23, male, etc"); } this code helps you to populate textbox with value from combobox 回答1: Consider this // your person model where you hold person info public class Person { public int Id {get; set;} public string Name {get; set;} public int Age {get; set;} public string Sex {get; set;} } // You will hold not strings but