Is there any way to clear all list box short way?
I have 15 list box inside my winForm... I am using to clear each of them
like below. is there any way to clear them in short way when the
application starts?
listBox1.Items.Clear();
listBox2.Items.Clear();
listBox3.Items.Clear();
listBox4.Items.Clear();
listBox5.Items.Clear();
listBox6.Items.Clear();
listBox7.Items.Clear();
listBox8.Items.Clear();
listBox9.Items.Clear();
listBox10.Items.Clear();
No comments:
Post a Comment