for (int j = 0; j < this.listQuery.Items.Count; j++) { listQuery.Items.Remove(this.listQuery.Items[j]); j--; }