private void pctIcon_DoubleClick(object sender, EventArgs e) { FChooseIcon fic = new FChooseIcon(); fic.ShowDialog(); if (fic.IconID > -1) { pctIcon.Image = ilProfileIcons.IconsList.Images[fic.IconID]; ScanSettings.IconID = fic.IconID; } }