listbox Refresh() in c#

前端 未结 10 2415
梦毁少年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:31

    I inherited ListBox and added a public method calling RefreshItems() which does what we want. Already implemented and all. I dont know why they didnt put in a public method.

提交回复
热议问题