System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(mainFrm)); Image miniqrcode = (System.Drawing.Image)(resources.GetObject("miniqrcode.Image"));//miniqrcode.png图片 Image miniqrcode1 = Properties.Resources.miniqrcode;//miniqrcode.png图片
转 : https://blog.csdn.net/ayman_zawahiri/article/details/83625312
https://www.cnblogs.com/suenihy/archive/2009/03/13/1410792.html