listbox Refresh() in c#
问题 int[] arr = int[100]; listBox1.DataSource = arr; void ComboBox1SelectedIndexChanged(object sender, EventArgs e) { .....//some processes listBox1.DataSource = null; listBox1.DataSource = arr; } is not working, also, listBox1.Refresh(); is not working, also, listBox1.Update(); is not working, i know i can use BindingList<T> but i have to work with only array. can you help me how can i refresh listbox? 回答1: try the following listBox1.DataBind() 回答2: my first answer on stack exchange here. C#