Select in listview, to pass the index through to another form
<p>public static int iDeliverySelected = -1;
        public static ArrayList myDeliveries = new ArrayList(); </p>

<p>I specify these two values at the top of the page.</p>

<p>The listview is populated as follows:</p>

<pre><code>lstDeliveryDetails.Items.Clear(); 
        foreach (Delivery d in mainForm.myDeliveries)
        {
            ListViewItem item = lstDeliveryDetails.Items.Add(d.DeliveryName); 
            item.SubItems.Add(d.DeliveryAddress);
            item.SubItems.Add(d.DeliveryDay);
            item.SubItems.Add(d.DeliveryTime);
            item.SubItems.Add(d.DeliveryMeal);
            item.SubItems.Add(d.DeliveryInstructions);
            item.SubItems.Add(d.DeliveryStatus);
        }
</code></pre>

<p>And then when I want to select one of these, I am getting stuck. My idea is that I want to select a value and then click an "Edit" button which will take me through to the saveForm and allow me to edit all the values that correspond to the selected index.</p>

<p>I have tried the following:</p>

<pre><code>iDeliverySelected = lstDeliveryDetails.SelectedIndicies;
</code></pre>

<p>iDeliverySelected = lstDeliveryDetails.SelectedIndex;</p>

<p>They both throw up the following error:</p>

<p>'System.Windows.Forms.ListView' does not contain a definition for 'SelectedIndicies' and no extension method 'SelectedIndicies' accepting a first argument of type 'System.Windows.Forms.ListView' could be found (are you missing a using directive or an assembly reference?)</p>

<p>I am literally stuck and have no idea what to do next! 
I would really appreciate it if someone could help!</p>
