[Help] Codedom and recource file 06-04-2012, 11:04 AM
#1
Hi HC 
I have little problem with my application.
I created an application that use codedom to compile another application and Add picture in Recource and it works good.
But how I invoke that image in my application.
I tried this but it does not work.

I have little problem with my application.
I created an application that use codedom to compile another application and Add picture in Recource and it works good.
But how I invoke that image in my application.
I tried this but it does not work.
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim resslika As New System.Resources.ResourceManager("an.png", System.Reflection.Assembly.GetExecutingAssembly)
PictureBox1.Image = resslika.GetObject("an.png")
End Sub
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)