C#; listbox's as one object(container)
<p><br>
I use Visual studio 2008 <br>
I have 5 listbox's on form,I created a new class  file -called him  "scaner.cs"</p>

<p>scaner.cs -he cannot  see "listbox".</p>

<p>I have create an instance.<br>
<code>
  scaner Comp = new scaner(listBox2, listBox1, listBox3, listBox4, listBox5);
</code></p>

<p>In scaner.cs file I use it like this.</p>

<pre>
class scaner
    {
        public ListBox ls;
        public ListBox lsE;
        public ListBox lsIVars;
        public ListBox lsNumbers;
        public ListBox lsStrings;

public scaner(ListBox ls, ListBox lsE, ListBox lsIVars, ListBox lsNumbers, ListBox lsStrings)
        {
            this.ls = ls;
            this.lsE = lsE;
            this.lsIVars = lsIVars;
            this.lsNumbers = lsNumbers;
            this.lsStrings = lsStrings;
        }
}
</pre>

<p>My question : How can i replaced this big code to more "comfortably" method.</p>

<pre>
scaner Comp = new scaner(listBox2, listBox1, listBox3, listBox4, listBox5);
</pre>

<p>IF i had more then 5 listbox's ,it will be awful.
How can i acced form another class file "Listbox's"
Thanks for answers.</p>
