listbox Refresh() in c#

前端 未结 10 2348
梦毁少年i
梦毁少年i 2020-12-30 10:54
int[] arr = int[100];
listBox1.DataSource = arr;
void ComboBox1SelectedIndexChanged(object sender, EventArgs e)
{
    .....//some processes
    listBox1.DataSource =         


        
10条回答
  •  伪装坚强ぢ
    2020-12-30 11:24

    Windows forms to see changes especially on Listbox and other controls before load is finished is tricky. To see data as its loaded use invalidate(); then Update();

提交回复
热议问题