private void button3_Click(object sender, EventArgs e) { openFileDialog1.Title = "Import Small Icon"; if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK && openFileDialog1.FileName.Length > 0) { Bitmap b = GFXUtil.Resize(new Bitmap(new MemoryStream(File.ReadAllBytes(openFileDialog1.FileName))), 24, 24); icn.SmallIcon = GPU.Textures.FromBitmap(b, GPU.Textures.ImageFormat.RGB565, true); b.Dispose(); pictureBox1.Image = icn.GetSmallIcon(); } }