S
Samuel
Hi
I added a Resource file to my application then I added 2 images to this file
I made sure to set the set the Build Option of the images to 'Embedded
Resource'
But I still can't find them
I tried the following 2 methods
1. Dim rm As New Resources.ResourceManager("Images", _
System.Reflection.Assembly.GetExecutingAssembly())
Dim bmUK As Bitmap = CType(rm.GetObject("UKFlag.bmp"), Image)
The error I get is that the application can't find this image
The name of the Resource file is Images
Method 2
Dim bmAmazonUK As Bitmap = New Bitmap(
System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("UKFlag.bmp"))
'
Any advice will be appreciated
Thank you,
Samuel
I added a Resource file to my application then I added 2 images to this file
I made sure to set the set the Build Option of the images to 'Embedded
Resource'
But I still can't find them
I tried the following 2 methods
1. Dim rm As New Resources.ResourceManager("Images", _
System.Reflection.Assembly.GetExecutingAssembly())
Dim bmUK As Bitmap = CType(rm.GetObject("UKFlag.bmp"), Image)
The error I get is that the application can't find this image
The name of the Resource file is Images
Method 2
Dim bmAmazonUK As Bitmap = New Bitmap(
System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("UKFlag.bmp"))
'
Any advice will be appreciated
Thank you,
Samuel