What event is it that triggers when ever actually check a object in checkedlistbox
I have Itemscheck but it doesnt update textbox1 untill after i click something else.
c# Code:
private void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e) { textBox1.Text = querylist(checkedListBox1,"OR"); } private string querylist (CheckedListBox CB_list,string and_or) { string querylist = ""; foreach (string x in CB_list.CheckedItems) { querylist += x + " " +and_or+" "; } return querylist; }




Reply With Quote