private void doAdd() { dlgOpen.Filter = "All format|*.PNG;*.BMP;*.JPG|PNG|*.PNG|BMP|*.BMP|JPG|*.JPG"; dlgOpen.Multiselect = true; if (dlgOpen.ShowDialog() == DialogResult.OK) { int i = lstPictureList.Items.Count; foreach (string item in dlgOpen.FileNames) { Bitmap bmp = new Bitmap(item); Bitmap tmp = new Bitmap(bmp); bmp.Dispose(); bmp = tmp; Animation.AddBitmap(bmp); lstPictureList.Items.Add("[" + i.ToString() + "] " + bmp.Width.ToString() + " " + bmp.Height.ToString()); i++; } } }