Problem using an array.
Posted on 2004-04-13
I created an array (using ArrayList()) called load when my form loads. I use the array as values for my combobox.
I am trying to use this array to assign a value to a text box when the combobox value is selected using the following code.
public void comboBox1_SelectedValueChanged(object sender, System.EventArgs e)
if(comboBox1.SelectedIndex != -1)
My problem is I am from the old school and can't make my array Public. What would be a work around for this? Can someone shed some light on the theory why its like this?