private void listView1_SelectedIndexChanged(object sender, EventArgs e)

        {

            foreach(ListViewItem itm in this.listView1.Items)

            {

                itm.BackColor = SystemColors.Window;

                itm.ForeColor = Color.Black;

            }

            foreach (ListViewItem itm2 in this.listView1.SelectedItems)

            {

                itm2.BackColor = SystemColors.MenuHighlight;

                itm2.ForeColor = Color.White;

            }

        }
05-04 07:19