页面中我是这样做的private System.ComponentModel.Container components = null;
ResourceManager rmBitmaps = null;
ResourceManager rmListImages = null;
private ImageList imageList; public Form1()
{ Assembly thisAssembly = Assembly.GetAssembly(Type.GetType("My_OutlookBar.Form1"));
rmListImages = new ResourceManager("IconImages", thisAssembly);
rmBitmaps = new ResourceManager("Menus", thisAssembly);
//
// Required for Windows Form Designer support
//
InitializeImageLists();
InitializeComponent(); //
// TODO: Add any constructor code after InitializeComponent call
//
}
void InitializeImageLists()
{
imageList = new ImageList();
imageList.ImageSize = new Size(16, 16);
Bitmap icons = (Bitmap)rmListImages.GetObject("ListIcons");//提示这一行不对,找不到ListIcons
icons.MakeTransparent(Color.FromArgb(192,192,192));
imageList.Images.AddStrip(icons);

}