访问指定名字资源文件的方法
vb.net吧
全部回复
仅看楼主
level 1
黑化肥会发挥灰
楼主
Dim r As Resources.ResourceManager = My.Resources.ResourceManager
PictureBox1.Image = CType(r.GetObject("_1"), Image)
2016年04月12日 01点04分
1
level 9
企鹅列兵
Dim resources As New System.ComponentModel.ComponentResourceManager(GetType(Form1))
Me.PictureBox2.Image = CType(resources.GetObject("PictureBox1.Image"), Image)
2016年04月12日 13点04分
2
黑化肥会发挥灰
感觉还是我的代码简洁点
2016年04月12日 14点04分
黑化肥会发挥灰
我发帖只是为了备份下
2016年04月12日 14点04分
level 9
企鹅列兵
资源的名称一定要正确。
2016年04月12日 13点04分
3
1