C#代码:
@H_301_3@System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly(); // Note that the name for the embedded resource is case sensitive and must match the file name. Bitmap bmp = new Bitmap(asm.GetManifestResourceStream(asm.GetName().Name + "." + "pic.png")); e.Graphics.DrawImage(bmp,5,8,new Rectangle(0,bmp.Width,bmp.Height),GraphicsUnit.Pixel)
VB代码