private void comfort_zone_Load(object sender, EventArgs e) { //on load it need to pull the data form database and it need to reset the values as well groupBox2.Enabled = false; this.Height = 280; //pull data form database.. first bs.PullComfortZoneData();//This will load the listComfortZoneDetail btn_color.BackColor = Color.LightGreen; //Now lets load the values int combobox1.items.add() comboBox1.Items.Clear(); foreach (var item in bs.listComfortZoneDetail) { comboBox1.Items.Add(item.name); } }