public void DrawAccs() { ImageList IL = new ImageList(); IL.ImageSize = new Size(64, 64); IL.ColorDepth = ColorDepth.Depth32Bit; PIL.LargeImageList = IL; PIL.Items.Clear(); foreach (GameAccount acc in AutoLogin.GetAccs()) { Image ii = Image.FromFile(AppDomain.CurrentDomain.BaseDirectory + "icons\\" + acc.icon); IL.Images.Add(LU.ScaleImage(ii, 64, 64)); ListViewItem item = new ListViewItem(); item.ImageIndex = IL.Images.Count - 1; item.Text = acc.name; PIL.Items.Add(item); } }